diff options
| author | Dr. Jens Harbott <harbott@osism.tech> | 2021-12-16 16:38:41 +0100 |
|---|---|---|
| committer | Dr. Jens Harbott <frickler@offenerstapel.de> | 2021-12-16 19:33:04 +0000 |
| commit | 90eb0ca4bb2570ec3812cbf15f5c9dc4f1b784a8 (patch) | |
| tree | 3b2cc62250277f39207f2403122c6b438138e1b9 /openstackclient/network/v2/subnet.py | |
| parent | c10a4cd96682d291dce571222de4fe5128f1c584 (diff) | |
| download | python-openstackclient-90eb0ca4bb2570ec3812cbf15f5c9dc4f1b784a8.tar.gz | |
Hide location columns for network objects
Network objects returned from the SDK include a location column which
has a reference to the cloud to which the object belongs. We don't want
to include them in CLI output where they are useless.
The solution implemented in [0] was dropped as a sideeffect in [1].
[0] https://review.opendev.org/c/openstack/python-openstackclient/+/679445
[1] https://review.opendev.org/c/openstack/python-openstackclient/+/815032
Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: I9a408d9721c9c57d752afaab520cd6ee379a5184
Diffstat (limited to 'openstackclient/network/v2/subnet.py')
| -rw-r--r-- | openstackclient/network/v2/subnet.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openstackclient/network/v2/subnet.py b/openstackclient/network/v2/subnet.py index 6645530b..88500375 100644 --- a/openstackclient/network/v2/subnet.py +++ b/openstackclient/network/v2/subnet.py @@ -140,11 +140,15 @@ def _get_columns(item): 'tenant_id': 'project_id', } # Do not show this column when displaying a subnet - invisible_columns = ['use_default_subnet_pool', 'prefix_length'] + invisible_columns = [ + 'location', + 'use_default_subnet_pool', + 'prefix_length' + ] return utils.get_osc_show_columns_for_sdk_resource( item, column_map, - invisible_columns=invisible_columns + invisible_columns ) |
