Merge "Include owner and status option in v2 image list"

This commit is contained in:
Jenkins
2015-05-25 21:15:12 +00:00
committed by Gerrit Code Review
2 changed files with 13 additions and 5 deletions
+5 -1
View File
@@ -166,8 +166,12 @@ def do_image_list(gc, args):
elif not args.sort_dir and not args.sort_key:
kwargs['sort'] = 'name:asc'
images = gc.images.list(**kwargs)
columns = ['ID', 'Name']
if args.verbose:
columns += ['owner', 'status']
images = gc.images.list(**kwargs)
utils.print_list(images, columns)