Merge "Control C does not cancel the CLI cleanly"

This commit is contained in:
Jenkins
2013-03-11 21:54:47 +00:00
committed by Gerrit Code Review

View File

@@ -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='<subcommand>', nargs='?',
help='Display help for <subcommand>')