Make cinderclient metadata CLI output consistent
cinder metadata-update-all and metadata-show produces inconsistent output. The following patch makes the output of each command above consistent, where each metadata property will be printed on a separate table row. Change-Id: I42933bc6c0e4f925c19cfd4db6d1a205de06a73d Closes-Bug: #1366289
This commit is contained in:
@@ -1409,7 +1409,7 @@ def do_metadata_update_all(cs, args):
|
||||
volume = utils.find_volume(cs, args.volume)
|
||||
metadata = _extract_metadata(args)
|
||||
metadata = volume.update_all_metadata(metadata)
|
||||
utils.print_dict(metadata)
|
||||
utils.print_dict(metadata['metadata'], 'Metadata-property')
|
||||
|
||||
|
||||
@utils.arg('snapshot',
|
||||
|
@@ -1613,7 +1613,7 @@ def do_metadata_update_all(cs, args):
|
||||
volume = utils.find_volume(cs, args.volume)
|
||||
metadata = _extract_metadata(args)
|
||||
metadata = volume.update_all_metadata(metadata)
|
||||
utils.print_dict(metadata)
|
||||
utils.print_dict(metadata['metadata'], 'Metadata-property')
|
||||
|
||||
|
||||
@utils.arg('snapshot',
|
||||
|
Reference in New Issue
Block a user