Move bgp global api to BgpOperations library
[integration/test.git] / csit / libraries / OpenStackOperations.robot
index ec08b781ff81eecdbb09a48d9c73d88e455fcc2d..a1ca371ac6ffdbe3cb6e52688663dce5a6c8668e 100644 (file)
@@ -1100,9 +1100,9 @@ OpenStack List All
 OpenStack CLI Get List
     [Arguments]    ${cmd}
     [Documentation]    Return a json list from the output of an OpenStack command.
+    @{list} =    BuiltIn.Create List
     ${json} =    OpenStack CLI    ${cmd}
-    @{list} =    BuiltIn.Run Keyword If    ${json}    RequestsLibrary.To Json    ${json}
-    ...    ELSE    BuiltIn.Create List
+    @{list} =    RequestsLibrary.To Json    ${json}
     BuiltIn.Log    ${list}
     [Return]    @{list}