summaryrefslogtreecommitdiffstats
path: root/robot/resources/openstack
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources/openstack')
-rw-r--r--robot/resources/openstack/keystone_interface.robot2
-rw-r--r--robot/resources/openstack/neutron_interface.robot6
-rw-r--r--robot/resources/openstack/nova_interface.robot2
3 files changed, 5 insertions, 5 deletions
diff --git a/robot/resources/openstack/keystone_interface.robot b/robot/resources/openstack/keystone_interface.robot
index fa37733c..03e94bb0 100644
--- a/robot/resources/openstack/keystone_interface.robot
+++ b/robot/resources/openstack/keystone_interface.robot
@@ -57,7 +57,7 @@ Get KeystoneAPIVersion
${json}= Parse Json ${resp.content}
${versions}= Get From Dictionary ${json} versions
${values}= Get From Dictionary ${versions} values
- : FOR ${value} IN @{values}
+ :FOR ${value} IN @{values}
\ ${status}= Get Variable Value ${value["status"]}
\ Run Keyword If '${status}'=='stable' Exit For Loop
${href}= Set Variable ${value["links"][0]["href"]}
diff --git a/robot/resources/openstack/neutron_interface.robot b/robot/resources/openstack/neutron_interface.robot
index bdb64b98..93563891 100644
--- a/robot/resources/openstack/neutron_interface.robot
+++ b/robot/resources/openstack/neutron_interface.robot
@@ -88,7 +88,7 @@ Get Openstack Subnet By Name
${resp}= Get Openstack Subnets ${alias}
@{list}= Get From Dictionary ${resp} subnets
${returnnet}= Set Variable
- :for ${net} in @{list}
+ :FOR ${net} IN @{list}
\ ${name}= Get From Dictionary ${net} name
\ ${cidr}= Get From Dictionary ${net} cidr
\ ${returnnet}= Set Variable ${net}
@@ -100,7 +100,7 @@ Get Openstack IP By Name
[Arguments] ${alias} ${network_name} ${cidr} ${ip}
${ports}= Get Openstack Ports For Subnet ${alias} ${network_name} ${cidr}
Log ${ports}
- :for ${port} in @{ports}
+ :FOR ${port} IN @{ports}
\ Return From Keyword If '${port['fixed_ips'][0]['ip_address']}' == '${ip}' ${port}
[Return] None
@@ -109,7 +109,7 @@ Get Openstack Ports For Subnet
${net}= Get Openstack Subnet By Name ${alias} ${network_name} ${cidr}
${ports}= Get Openstack Ports ${alias}
${net_ports}= Create List
- :for ${port} in @{ports['ports']}
+ :FOR ${port} IN @{ports['ports']}
\ Run Keyword If '${net['network_id']}' == '${port['network_id']}' Append To List ${net_ports} ${port}
[Return] ${net_ports}
diff --git a/robot/resources/openstack/nova_interface.robot b/robot/resources/openstack/nova_interface.robot
index 2c9ec4c5..8b64bb95 100644
--- a/robot/resources/openstack/nova_interface.robot
+++ b/robot/resources/openstack/nova_interface.robot
@@ -142,7 +142,7 @@ Delete Server
Get Id For Name
[Arguments] ${list} ${name}
- :for ${item} in @{list}
+ :FOR ${item} IN @{list}
\ ${id}= Get From Dictionary ${item} id
\ ${n}= Get From Dictionary ${item} name
\ Return from Keyword If '${n}' == '${name}' ${id}