diff --git a/zunclient/osc/v1/containers.py b/zunclient/osc/v1/containers.py index 3db9b157..c4937320 100644 --- a/zunclient/osc/v1/containers.py +++ b/zunclient/osc/v1/containers.py @@ -993,7 +993,7 @@ class CommitContainer(command.Command): try: image = client.containers.commit(container, **opts) print("Request to commit container %s has been accepted. " - "The image is %s." % (container, image)) + "The image is %s." % (container, image['uuid'])) except Exception as e: print("commit container %(container)s failed: %(e)s" % {'container': container, 'e': e}) diff --git a/zunclient/v1/containers_shell.py b/zunclient/v1/containers_shell.py index 7e446e4d..afe399ad 100644 --- a/zunclient/v1/containers_shell.py +++ b/zunclient/v1/containers_shell.py @@ -714,7 +714,7 @@ def do_commit(cs, args): try: image = cs.containers.commit(args.container, **opts) print("Request to commit container %s has been accepted. " - "The image is %s." % (args.container, image)) + "The image is %s." % (args.container, image['uuid'])) except Exception as e: print("Commit for container %(container)s failed: %(e)s" % {'container': args.container, 'e': e})