summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2015-09-16 16:41:58 -0700
committerClark Boylan <clark.boylan@gmail.com>2015-09-16 16:43:27 -0700
commit2906d1e61fd6e2e1024996993e1c108966fc425f (patch)
tree737995be77ddcfe2c93d30ff4fef5918853e71b7
parent4287c75c5795665e2a7dfdbab826adbc1a106df4 (diff)
downloados-client-config-2906d1e61fd6e2e1024996993e1c108966fc425f.tar.gz
Properly handle os- prefixed args in fix_args
Prior to this any arg that started with 'os' had the 'os' prefix chomped including the next character. This meant that any arg like 'osmosis' would've been replaced with 'osis' which is clearly wrong. Instead we want to treat the OpenStack prefix of 'os-' or 'os_' as the special thing so check the next character is correct before chomping. Change-Id: Id12a92adf63d896f7aa5c0e391abd299c4ce3331
-rw-r--r--os_client_config/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py
index e8e76a5..6531205 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -383,7 +383,7 @@ class OpenStackConfig(object):
new_args = dict()
for (key, val) in iter(args.items()):
key = key.replace('-', '_')
- if key.startswith('os'):
+ if key.startswith('os_'):
os_args[key[3:]] = val
else:
new_args[key] = val