summaryrefslogtreecommitdiff
path: root/os_client_config/config.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-07-17 13:27:59 +0000
committerGerrit Code Review <review@openstack.org>2015-07-17 13:27:59 +0000
commit2647d5302c11f59d43b4869983e73cc066807281 (patch)
treeecd199852258483c2faefb00e5a8b59e9c5e3cb6 /os_client_config/config.py
parent3a603e013bd149355435350b408edba52ebaf954 (diff)
parent0b698134db7fef262304f1eb55b374dc36ce93b1 (diff)
downloados-client-config-2647d5302c11f59d43b4869983e73cc066807281.tar.gz
Merge "Rename 'endpoint_type' to 'interface'"
Diffstat (limited to 'os_client_config/config.py')
-rw-r--r--os_client_config/config.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py
index 89503e7..25fbf64 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -278,6 +278,7 @@ class OpenStackConfig(object):
def _fix_backwards_madness(self, cloud):
cloud = self._fix_backwards_project(cloud)
cloud = self._fix_backwards_auth_plugin(cloud)
+ cloud = self._fix_backwards_interface(cloud)
return cloud
def _fix_backwards_project(self, cloud):
@@ -315,6 +316,13 @@ class OpenStackConfig(object):
cloud[target_key] = target
return cloud
+ def _fix_backwards_interface(self, cloud):
+ for key in cloud.keys():
+ if key.endswith('endpoint_type'):
+ target_key = key.replace('endpoint_type', 'interface')
+ cloud[target_key] = cloud.pop(key)
+ return cloud
+
def get_all_clouds(self):
clouds = []