Upgrade RF syntax for v3.2 compatibility
[integration/test.git] / csit / libraries / SFC / DockerSfc.robot
index 93b9bbe8f196501a02eed32c020c549c217164f8..22f092a98b1699690f3b52bfd865ec3facc43afa 100644 (file)
@@ -57,9 +57,10 @@ Multiple Docker Exec
     [Arguments]    ${docker_name_list}    ${command}    ${return_contains}=${EMPTY}    ${result_code}=0
     [Documentation]    Execute a command in a list of dockers and return all the outputs in a list
     @{list_output}=    Create List
-    : FOR    ${docker_id}    IN    @{docker_name_list}
-    \    ${exec_output}=    Docker Exec    ${docker_id}    ${command}    ${return_contains}    ${result_code}
-    \    Append To List    ${list_output}    ${exec_output}
+    FOR    ${docker_id}    IN    @{docker_name_list}
+        ${exec_output}=    Docker Exec    ${docker_id}    ${command}    ${return_contains}    ${result_code}
+        Append To List    ${list_output}    ${exec_output}
+    END
     [Return]    ${list_output}
 
 Get Flows In Docker Containers