Merge "Only show progress bar for local image files"

This commit is contained in:
Jenkins 2014-02-27 11:55:40 +00:00 committed by Gerrit Code Review
commit 46bf452710
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,8 @@ def do_image_create(gc, args):
_set_data_field(fields, args)
if args.progress:
# Only show progress bar for local image files
if fields.get('data') and args.progress:
filesize = utils.get_file_size(fields['data'])
fields['data'] = progressbar.VerboseFileWrapper(
fields['data'], filesize