Merge "Control C does not cancel the CLI cleanly"
This commit is contained in:
@@ -440,6 +440,9 @@ 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 KeyboardInterrupt:
|
||||||
|
LOG.warn('... terminating glance client')
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
@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