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:
Monty Taylor 2015-09-20 20:08:39 -04:00
parent 8317c2bf79
commit 8dee656df8

View File

@ -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: