diff options
Diffstat (limited to 'cinderclient/v2/shell.py')
-rw-r--r-- | cinderclient/v2/shell.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index 16e6877..0795c8a 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -1910,6 +1910,16 @@ def do_metadata_show(cs, args): utils.print_dict(volume._info['metadata'], 'Metadata-property') +@utils.arg('volume', metavar='<volume>', + help='ID of volume.') +@utils.service_type('volumev2') +def do_image_metadata_show(cs, args): + """Shows volume image metadata.""" + volume = utils.find_volume(cs, args.volume) + resp, body = volume.show_image_metadata(volume) + utils.print_dict(body['metadata'], 'Metadata-property') + + @utils.arg('volume', metavar='<volume>', help='ID of volume for which to update metadata.') |