From c66abfc76fa9bcefa95c10362f7dc9f1cb15bc9a Mon Sep 17 00:00:00 2001 From: Rajesh Tailor Date: Wed, 9 Apr 2025 12:02:58 +0530 Subject: [PATCH] Workaround for failing tests on openstacksdk change The 'show-instance-action-finish-time' blueprint [1] adds support for showing 'finish_time' for InstanceAction object. This change adds 'finish_time' as hidden column, so it doesn't fail tests. We need to remove this from hidden_column list, once all the changes related to blueprint are merged and show the field only if microversion is >= 2.101 This is a workaround for failing tests on patch [2], as per suggestion from Stephen. [1] https://blueprints.launchpad.net/openstack/?searchtext=show-instance-action-finish-time [2] https://review.opendev.org/c/openstack/openstacksdk/+/930562 Implements: blueprint show-instance-action-finish-time Change-Id: Ib9294a603daed0fdb936be128dfba254b9108799 --- openstackclient/compute/v2/server_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstackclient/compute/v2/server_event.py b/openstackclient/compute/v2/server_event.py index 3666bfe294..3275df9938 100644 --- a/openstackclient/compute/v2/server_event.py +++ b/openstackclient/compute/v2/server_event.py @@ -82,7 +82,7 @@ class ServerActionEventColumn(columns.FormattableColumn): def _get_server_event_columns(item, client): - hidden_columns = ['name', 'server_id', 'links', 'location'] + hidden_columns = ['name', 'server_id', 'links', 'location', 'finish_time'] if not sdk_utils.supports_microversion(client, '2.58'): # updated_at was introduced in 2.58