summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2015-09-20 20:08:39 -0400
committerMonty Taylor <mordred@inaugust.com>2015-09-20 20:08:39 -0400
commit8dee656df809ed1b39b2800e35cc5ef67c31e84e (patch)
tree2ea37e82ef385f231a3d4c04af960debb3abbc4c
parent8317c2bf7929cb881721c862d3c5e18d95e1aa2d (diff)
downloados-client-config-1.7.4.tar.gz
Handle ksa opt with no deprecated field1.7.4
Bad logic fallthrough causes us to die when trying to process an option that does not have a deprecated option. Change-Id: I613466c6146a94b66a0a6d9955cdc4a6556f44ed
-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 96d5fa7..1b6193e 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -404,7 +404,7 @@ class OpenStackConfig(object):
return config[opt_name]
else:
deprecated = getattr(opt, 'deprecated', getattr(
- opt, 'deprecated_opts'))
+ opt, 'deprecated_opts', []))
for d_opt in deprecated:
d_opt_name = d_opt.name.replace('-', '_')
if d_opt_name in config: