Better support for unauthenticated requests.
* Don't complain about missing account info if we know the request will be unauthenticated. Change-Id: I573a485798a1e59b453d1ce8569c3557912998a5
This commit is contained in:
parent
b7f6bc52c7
commit
cf869eb1ef
@ -413,14 +413,16 @@ class StacktaskShell(object):
|
||||
self.do_bash_completion(args)
|
||||
return 0
|
||||
|
||||
if not args.os_username and not args.os_token:
|
||||
if (not args.os_username and not args.os_token and
|
||||
not args.os_no_client_auth):
|
||||
raise exc.CommandError(
|
||||
_("You must provide a username via either "
|
||||
"--os-username or env[OS_USERNAME] "
|
||||
"or a token via --os-token or "
|
||||
"env[OS_TOKEN]"))
|
||||
|
||||
if not args.os_password and not args.os_token:
|
||||
if (not args.os_password and not args.os_token and
|
||||
not args.os_no_client_auth):
|
||||
raise exc.CommandError(
|
||||
_("You must provide a password via either "
|
||||
"--os-password or env[OS_PASSWORD] "
|
||||
|
Loading…
x
Reference in New Issue
Block a user