Merge "Protect against p_opt not having prompt attribute"

This commit is contained in:
Zuul 2017-10-18 18:48:20 +00:00 committed by Gerrit Code Review
commit 2ed3b34a78
1 changed files with 1 additions and 1 deletions

View File

@ -950,7 +950,7 @@ class OpenStackConfig(object):
def option_prompt(self, config, p_opt):
"""Prompt user for option that requires a value"""
if (
p_opt.prompt is not None and
getattr(p_opt, 'prompt', None) is not None and
p_opt.dest not in config['auth'] and
self._pw_callback is not None
):