Merge "Showing the metadata readonly value as a separate field"
This commit is contained in:
commit
e30cc55942
@ -327,6 +327,9 @@ def do_show(cs, args):
|
||||
volume = utils.find_volume(cs, args.volume)
|
||||
info.update(volume._info)
|
||||
|
||||
if 'readonly' in info['metadata']:
|
||||
info['readonly'] = info['metadata']['readonly']
|
||||
|
||||
info.pop('links', None)
|
||||
utils.print_dict(info,
|
||||
formatters=['metadata', 'volume_image_metadata'])
|
||||
@ -489,6 +492,9 @@ def do_create(cs, args):
|
||||
volume = cs.volumes.get(volume.id)
|
||||
info.update(volume._info)
|
||||
|
||||
if 'readonly' in info['metadata']:
|
||||
info['readonly'] = info['metadata']['readonly']
|
||||
|
||||
info.pop('links', None)
|
||||
utils.print_dict(info)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user