Handle ksa opt with no deprecated field
Bad logic fallthrough causes us to die when trying to process an option that does not have a deprecated option. Change-Id: I613466c6146a94b66a0a6d9955cdc4a6556f44ed
This commit is contained in:
parent
8317c2bf79
commit
8dee656df8
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user