summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-06-14 18:41:33 +0000
committerGerrit Code Review <review@openstack.org>2015-06-14 18:41:33 +0000
commitba79c3fdfb51be2aa091eab7229c9c61884024bc (patch)
tree84ea54ae7b3d9ec60baa507e8cf30bae4c6bf7f7
parent724abb37b8823bf384cdafa5094e372bc511b939 (diff)
parent9f69b43f5aa7b001b3f2681209564d1152309bb2 (diff)
downloadpython-openstackclient-ba79c3fdfb51be2aa091eab7229c9c61884024bc.tar.gz
Merge "Improve the hint message"1.4.0
-rw-r--r--openstackclient/api/auth.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/openstackclient/api/auth.py b/openstackclient/api/auth.py
index 1d50f92c..820b4ecf 100644
--- a/openstackclient/api/auth.py
+++ b/openstackclient/api/auth.py
@@ -152,8 +152,10 @@ def check_valid_auth_options(options, auth_plugin_name):
options.auth.get('project_name', None) and not
options.auth.get('tenant_id', None) and not
options.auth.get('tenant_name', None)):
- msg += _('Set a scope, such as a project or domain, with '
- '--os-project-name, OS_PROJECT_NAME or auth.project_name')
+ msg += _('Set a scope, such as a project or domain, set a '
+ 'project scope with --os-project-name, OS_PROJECT_NAME '
+ 'or auth.project_name, set a domain scope with '
+ '--os-domain-name, OS_DOMAIN_NAME or auth.domain_name')
elif auth_plugin_name.endswith('token'):
if not options.auth.get('token', None):
msg += _('Set a token with --os-token, OS_TOKEN or auth.token\n')