Unreadable output of upload-to-image.

The output of upload-to-image is not readable due to
volume type is printed in output as a whole.
Printing volume type name only cleans up the output.

Change-Id: Ia588cf7ccc0873a8cf956c551afcccf4b6ddaa39
Closes-Bug: #1557486
This commit is contained in:
deepak_mourya 2018-05-28 09:38:34 +05:30
parent 3f6aa2a648
commit a5d5ab5a21

View File

@ -27,6 +27,10 @@ _quota_infos = ['Type', 'In_use', 'Reserved', 'Limit', 'Allocated']
def print_volume_image(image):
if 'volume_type' in image[1]['os-volume_upload_image']:
volume_type_name = (
image[1]['os-volume_upload_image']['volume_type']['name'])
image[1]['os-volume_upload_image']['volume_type'] = volume_type_name
utils.print_dict(image[1]['os-volume_upload_image'])