summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2/router.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/router.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/router.py')
-rw-r--r--openstackclient/network/v2/router.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/network/v2/router.py b/openstackclient/network/v2/router.py
index aeeec931..61c176e3 100644
--- a/openstackclient/network/v2/router.py
+++ b/openstackclient/network/v2/router.py
@@ -74,7 +74,7 @@ def _get_columns(item):
}
if hasattr(item, 'interfaces_info'):
column_map['interfaces_info'] = 'interfaces_info'
- invisible_columns = []
+ invisible_columns = ['location']
if item.is_ha is None:
invisible_columns.append('is_ha')
column_map.pop('is_ha')