summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2/ip_availability.py
diff options
context:
space:
mode:
authorDr. Jens Harbott <harbott@osism.tech>2021-12-16 16:38:41 +0100
committerDr. Jens Harbott <frickler@offenerstapel.de>2021-12-16 19:33:04 +0000
commit90eb0ca4bb2570ec3812cbf15f5c9dc4f1b784a8 (patch)
tree3b2cc62250277f39207f2403122c6b438138e1b9 /openstackclient/network/v2/ip_availability.py
parentc10a4cd96682d291dce571222de4fe5128f1c584 (diff)
downloadpython-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/ip_availability.py')
-rw-r--r--openstackclient/network/v2/ip_availability.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/openstackclient/network/v2/ip_availability.py b/openstackclient/network/v2/ip_availability.py
index 6a3c67e2..e15ff2e9 100644
--- a/openstackclient/network/v2/ip_availability.py
+++ b/openstackclient/network/v2/ip_availability.py
@@ -29,7 +29,12 @@ def _get_columns(item):
column_map = {
'tenant_id': 'project_id',
}
- return utils.get_osc_show_columns_for_sdk_resource(item, column_map)
+ hidden_columns = ['location']
+ return utils.get_osc_show_columns_for_sdk_resource(
+ item,
+ column_map,
+ hidden_columns
+ )
# TODO(ankur-gupta-f): Use the SDK resource mapped attribute names once