Merge "Remove AuthorizationFailure exception"
This commit is contained in:
@@ -7,10 +7,6 @@ class CommandError(Exception):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class AuthorizationFailure(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class NoTokenLookupException(Exception):
|
class NoTokenLookupException(Exception):
|
||||||
"""This form of authentication does not support looking up
|
"""This form of authentication does not support looking up
|
||||||
endpoints from an existing token."""
|
endpoints from an existing token."""
|
||||||
|
|||||||
@@ -283,8 +283,6 @@ class OpenStackImagesShell(object):
|
|||||||
args.func(client, args)
|
args.func(client, args)
|
||||||
except exc.Unauthorized:
|
except exc.Unauthorized:
|
||||||
raise exc.CommandError("Invalid OpenStack Identity credentials.")
|
raise exc.CommandError("Invalid OpenStack Identity credentials.")
|
||||||
except exc.AuthorizationFailure:
|
|
||||||
raise exc.CommandError("Unable to authorize user")
|
|
||||||
|
|
||||||
@utils.arg('command', metavar='<subcommand>', nargs='?',
|
@utils.arg('command', metavar='<subcommand>', nargs='?',
|
||||||
help='Display help for <subcommand>')
|
help='Display help for <subcommand>')
|
||||||
|
|||||||
Reference in New Issue
Block a user