diff options
author | Sergey Kraynev <skraynev@mirantis.com> | 2014-11-21 09:57:23 -0500 |
---|---|---|
committer | Sergey Kraynev <skraynev@mirantis.com> | 2015-02-12 07:24:16 -0500 |
commit | 8311708907604f473dbc56e10b9da61670540241 (patch) | |
tree | e150da4a607a7b4a4d7db7a4b617289c8cd3e1ed /keystoneclient/fixture | |
parent | 32c18a83e2ffe80f559ca871eeddb2ef8848ff17 (diff) | |
download | python-keystoneclient-8311708907604f473dbc56e10b9da61670540241.tar.gz |
Using correct keyword for region in v3
Keystone v3 and v2 have different keywords in endpoint
dictionary. This patch adds ability for keystone client for correct
work with old and new API.
Change-Id: I886b4c7ac3cbe08ac1b88f490e9ca92a90256961
Closes-Bug: #1364463
Diffstat (limited to 'keystoneclient/fixture')
-rw-r--r-- | keystoneclient/fixture/v3.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/keystoneclient/fixture/v3.py b/keystoneclient/fixture/v3.py index b4cd0df..4f3d1f1 100644 --- a/keystoneclient/fixture/v3.py +++ b/keystoneclient/fixture/v3.py @@ -28,7 +28,8 @@ class _Service(dict): def add_endpoint(self, interface, url, region=None): data = {'interface': interface, 'url': url, - 'region': region} + 'region': region, + 'region_id': region} self.setdefault('endpoints', []).append(data) return data |