summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-01-16 21:14:08 +0000
committerGerrit Code Review <review@openstack.org>2015-01-16 21:14:08 +0000
commitb9e50a716d9ee5fa33e23621ddbe467837d941c7 (patch)
treeab6cebc80d1c06f998c85d43329362ffa1e7f2d1 /openstackclient/common
parentee62718dc8585f3260ca89886d7bf8546931053a (diff)
parentfff4a1cd23057160af13f157a6fde2c172fae7a9 (diff)
downloadpython-openstackclient-b9e50a716d9ee5fa33e23621ddbe467837d941c7.tar.gz
Merge "Add helpful messages when authN'ing with password"
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/clientmanager.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/openstackclient/common/clientmanager.py b/openstackclient/common/clientmanager.py
index 2a138d94..2908c8ff 100644
--- a/openstackclient/common/clientmanager.py
+++ b/openstackclient/common/clientmanager.py
@@ -74,13 +74,16 @@ class ClientManager(object):
:param pw_func:
Callback function for asking the user for a password. The function
takes an optional string for the prompt ('Password: ' on None) and
- returns a string containig the password
+ returns a string containing the password
"""
# If no auth type is named by the user, select one based on
# the supplied options
self.auth_plugin_name = auth.select_auth_plugin(auth_options)
+ # Basic option checking to avoid unhelpful error messages
+ auth.check_valid_auth_options(auth_options, self.auth_plugin_name)
+
# Horrible hack alert...must handle prompt for null password if
# password auth is requested.
if (self.auth_plugin_name.endswith('password') and