Don't print user_data for 'nova show'
User data is a blob of data that the user can specify when they launch an instance. It's generally binary data, which means it's not something we should show by default on the CLI. Stop doing that. Change-Id: If8f6cc040d0077a7902a5fd425e67d74d7925a46 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Closes-Bug: #1669140
This commit is contained in:
parent
b9a7e03074
commit
03dca4bc82
@ -32,8 +32,7 @@ class TestExtAttrNovaClientV23(test_extended_attributes.TestExtAttrNovaClient):
|
|||||||
'OS-EXT-SRV-ATTR:ramdisk_id',
|
'OS-EXT-SRV-ATTR:ramdisk_id',
|
||||||
'OS-EXT-SRV-ATTR:kernel_id',
|
'OS-EXT-SRV-ATTR:kernel_id',
|
||||||
'OS-EXT-SRV-ATTR:hostname',
|
'OS-EXT-SRV-ATTR:hostname',
|
||||||
'OS-EXT-SRV-ATTR:root_device_name',
|
'OS-EXT-SRV-ATTR:root_device_name']:
|
||||||
'OS-EXT-SRV-ATTR:user_data']:
|
|
||||||
self._get_value_from_the_table(table, attr)
|
self._get_value_from_the_table(table, attr)
|
||||||
# Check that attribute given below also exists in 'nova show' table
|
# Check that attribute given below also exists in 'nova show' table
|
||||||
# as a key (first column) of table dict
|
# as a key (first column) of table dict
|
||||||
|
@ -2502,6 +2502,7 @@ def _print_server(cs, args, server=None, wrap=0):
|
|||||||
|
|
||||||
info.pop('links', None)
|
info.pop('links', None)
|
||||||
info.pop('addresses', None)
|
info.pop('addresses', None)
|
||||||
|
info.pop('OS-EXT-SRV-ATTR:user_data', None)
|
||||||
|
|
||||||
utils.print_dict(info, wrap=wrap)
|
utils.print_dict(info, wrap=wrap)
|
||||||
|
|
||||||
|
5
releasenotes/notes/bug-1669140-c21d045491201352.yaml
Normal file
5
releasenotes/notes/bug-1669140-c21d045491201352.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
issues:
|
||||||
|
- |
|
||||||
|
The ``nova show`` command will no longer output the ``user_data`` column.
|
||||||
|
This is traditionally binary data of limited value from a CLI perspective.
|
Loading…
Reference in New Issue
Block a user