From: garciadeblas Date: Mon, 19 Aug 2024 16:16:10 +0000 (+0200) Subject: Fix getting flavor ID when using python-openstackclient==7.0.0 X-Git-Tag: release-v16.0-start^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F14521%2F1;p=osm%2Ftests.git Fix getting flavor ID when using python-openstackclient==7.0.0 Change-Id: Ib3e8af1a6a6d86e489b7734a8a9bf5597fa8326c Signed-off-by: garciadeblas --- diff --git a/robot-systest/lib/openstack_lib.resource b/robot-systest/lib/openstack_lib.resource index 3ad237b..add717a 100644 --- a/robot-systest/lib/openstack_lib.resource +++ b/robot-systest/lib/openstack_lib.resource @@ -31,7 +31,7 @@ Get Server Flavor ID [Documentation] Get from Openstack the flavor id of a server/VM passed as argument. [Arguments] ${server_id} Should Not Be Empty ${server_id} - ${rc} ${stdout}= Run And Return Rc And Output openstack server show ${server_id} | grep flavor | awk 'NR>1{print $1}' RS='(' FS=')' + ${rc} ${stdout}= Run And Return Rc And Output openstack server show ${server_id} -c flavor -f value |yq -r '.id' Log ${stdout} Should Be Equal As Integers ${rc} ${SUCCESS_RETURN_CODE} RETURN ${stdout}