diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-07-17 13:27:59 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-07-17 13:27:59 +0000 |
commit | 2647d5302c11f59d43b4869983e73cc066807281 (patch) | |
tree | ecd199852258483c2faefb00e5a8b59e9c5e3cb6 /os_client_config/config.py | |
parent | 3a603e013bd149355435350b408edba52ebaf954 (diff) | |
parent | 0b698134db7fef262304f1eb55b374dc36ce93b1 (diff) | |
download | os-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.py | 8 |
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 = [] |