Fix Fail01 to get openstack quota properly after updating client version
[osm/tests.git] / robot-systest / lib / openstack_lib.robot
index 1f1020d..80bc22b 100644 (file)
@@ -64,7 +64,7 @@ Get Project Quota
     [Arguments]   ${field}
 
     Should Not Be Empty   ${field}
-    ${rc}   ${stdout}=   Run and Return RC and Output   openstack quota show -c ${field} -f value
+    ${rc}   ${stdout}=   Run and Return RC and Output   openstack quota show -f yaml | yq '.[] | select(.Resource=="${field}") | .Limit'
     Log   ${stdout}
     Should Be Equal As Integers   ${rc}   ${success_return_code}
     [Return]   ${stdout}