From 604ceeedf98e06a07f861a628b931033f5509c79 Mon Sep 17 00:00:00 2001 From: "Dr. Jens Harbott" Date: Mon, 27 Jun 2022 09:17:31 +0200 Subject: Don't show tenant_id in network objects Patch [0] dropped mapping the tenant_id attribute to project_id. However, the Neutron API still returns the tenant_id attribute in addition to the project_id and so we still need to discard it from the output. [0] I5f62f2a76592eaaaed6703624e959df41a6ecc8f Signed-off-by: Dr. Jens Harbott Change-Id: Iba1e003bf587802f28928cb44d160b3b3fb1f840 --- openstackclient/network/v2/subnet.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'openstackclient/network/v2/subnet.py') diff --git a/openstackclient/network/v2/subnet.py b/openstackclient/network/v2/subnet.py index bf6a46d4..8e3a877f 100644 --- a/openstackclient/network/v2/subnet.py +++ b/openstackclient/network/v2/subnet.py @@ -138,16 +138,17 @@ def _get_columns(item): 'is_dhcp_enabled': 'enable_dhcp', 'subnet_pool_id': 'subnetpool_id', } - # Do not show this column when displaying a subnet - invisible_columns = [ + # Do not show these columns when displaying a subnet + hidden_columns = [ 'location', 'use_default_subnet_pool', - 'prefix_length' + 'prefix_length', + 'tenant_id', ] return utils.get_osc_show_columns_for_sdk_resource( item, column_map, - invisible_columns + hidden_columns ) -- cgit v1.2.1