diff options
author | Zuul <zuul@review.openstack.org> | 2017-10-18 18:48:20 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-10-18 18:48:20 +0000 |
commit | 2ed3b34a789feda83c453a17e865f105400170fc (patch) | |
tree | e764b131c4c232ee1dcc4b20ac6f7f40a864bc7c | |
parent | 15834d7620498bff8561fc423acef8192d729b8f (diff) | |
parent | ed09236683bb3d3fc0a8093912bd8abed2bd7cd8 (diff) | |
download | os-client-config-2ed3b34a789feda83c453a17e865f105400170fc.tar.gz |
Merge "Protect against p_opt not having prompt attribute"
-rw-r--r-- | os_client_config/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py index eb415f7..aac41a4 100644 --- a/os_client_config/config.py +++ b/os_client_config/config.py @@ -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 ): |