Use split string robot function to create a list output of onos controller names instead of trying to create a list from a string output
Change-Id: I83100cf5bd039676901aab5728eb47dd7b61c6fd
diff --git a/src/test/robot/cord_resource.robot b/src/test/robot/cord_resource.robot
index 67219e5..b487063 100644
--- a/src/test/robot/cord_resource.robot
+++ b/src/test/robot/cord_resource.robot
@@ -2,6 +2,7 @@
Documentation Common definitions of variables and keywords for running cord tester
Library OperatingSystem
Library Collections
+Library String
Library RequestsLibrary
*** Variables ***
@@ -18,7 +19,7 @@
Should Be Equal As Integers ${rc} 0
${test_container}= Run sudo docker ps | grep cord-tester | tail -1 | tr -s ' ' | awk '{print $NF}'
${controllers}= Run sudo docker ps | grep cord-onos | tr -s ' ' | awk '{print $NF}' | tr -s '\n' ' '
- @{controller_names}= Create List ${controllers}
+ @{controller_names}= Split String ${controllers}
@{controller_list}= Create List
: FOR ${controller} IN @{controller_names}
\ ${ip}= Run sudo docker inspect -f '{{.NetworkSettings.Networks.bridge.IPAddress}}' ${controller}