Merge "Improve style of zun pull"

This commit is contained in:
Jenkins
2017-05-24 16:20:25 +00:00
committed by Gerrit Code Review

View File

@@ -18,13 +18,13 @@ def _show_image(image):
utils.print_dict(image._info) utils.print_dict(image._info)
@utils.arg('repo', @utils.arg('image',
metavar='<repo>', metavar='<image>',
help='Image repository') help='Name of the image')
def do_pull(cs, args): def do_pull(cs, args):
"""Pull an image.""" """Pull an image."""
opts = {} opts = {}
opts['repo'] = args.repo opts['repo'] = args.image
_show_image(cs.images.create(**opts)) _show_image(cs.images.create(**opts))