Revision 51081e51 kamaki/clients/astakos/__init__.py

b/kamaki/clients/astakos/__init__.py
106 106
        for endpoint in service['endpoints']:
107 107

  
108 108
            if (not version) or (
109
                    endpoint['version_id'].lower() == version.lower()):
109
                    endpoint['versionId'].lower() == version.lower()):
110 110
                matches.append(endpoint)
111 111
        if len(matches) != 1:
112 112
            raise ClientError(
113 113
                '%s endpoints match type %s %s' % (
114 114
                    len(matches), service_type,
115
                    ('and version_id %s' % version) if version else ''),
115
                    ('and versionId %s' % version) if version else ''),
116 116
                601)
117 117
        return matches[0]
118 118

  

Also available in: Unified diff