diff --git a/glanceclient/shell.py b/glanceclient/shell.py index 460c6eeb..8a54f144 100644 --- a/glanceclient/shell.py +++ b/glanceclient/shell.py @@ -440,6 +440,9 @@ class OpenStackImagesShell(object): args.func(client, args) except exc.Unauthorized: raise exc.CommandError("Invalid OpenStack Identity credentials.") + except KeyboardInterrupt: + LOG.warn('... terminating glance client') + sys.exit(1) @utils.arg('command', metavar='', nargs='?', help='Display help for ')