- : FOR ${vm} IN @{vms}
- \ OpenStackOperations.Poll VM Is ACTIVE ${vm}
- \ ${status} ${ips_and_console_log} BuiltIn.Run Keyword And Ignore Error BuiltIn.Wait Until Keyword Succeeds 180s 15s
- \ ... OpenStackOperations.Get VM IP true ${vm}
- \ # If there is trouble with Get VM IP, the status will be FAIL and the return value will be a string of what went
- \ # wrong. We need to handle both the PASS and FAIL cases. In the FAIL case we know we wont have access to the
- \ # console log, as it would not be returned; so we need to grab it again to log it. We also can append 'None' to
- \ # the vm ip list if status is FAIL.
- \ BuiltIn.Run Keyword If "${status}" == "PASS" BuiltIn.Log ${ips_and_console_log[2]}
- \ BuiltIn.Run Keyword If "${status}" == "PASS" Collections.Append To List ${vm_ips} ${ips_and_console_log[0]}
- \ BuiltIn.Run Keyword If "${status}" == "FAIL" Collections.Append To List ${vm_ips} None
- \ ${vm_console_output} = BuiltIn.Run Keyword If "${status}" == "FAIL" OpenStack CLI openstack console log show ${vm}
- \ BuiltIn.Run Keyword If "${status}" == "FAIL" BuiltIn.Log ${vm_console_output}
+ FOR ${vm} IN @{vms}
+ OpenStackOperations.Poll VM Is ACTIVE ${vm}
+ ${status} ${ips_and_console_log} BuiltIn.Run Keyword And Ignore Error BuiltIn.Wait Until Keyword Succeeds 180s 15s
+ ... OpenStackOperations.Get VM IP true ${vm}
+ # If there is trouble with Get VM IP, the status will be FAIL and the return value will be a string of what went
+ # wrong. We need to handle both the PASS and FAIL cases. In the FAIL case we know we wont have access to the
+ # console log, as it would not be returned; so we need to grab it again to log it. We also can append 'None' to
+ # the vm ip list if status is FAIL.
+ BuiltIn.Run Keyword If "${status}" == "PASS" BuiltIn.Log ${ips_and_console_log[2]}
+ BuiltIn.Run Keyword If "${status}" == "PASS" Collections.Append To List ${vm_ips} ${ips_and_console_log[0]}
+ BuiltIn.Run Keyword If "${status}" == "FAIL" Collections.Append To List ${vm_ips} None
+ ${vm_console_output} = BuiltIn.Run Keyword If "${status}" == "FAIL" OpenStack CLI openstack console log show ${vm}
+ BuiltIn.Run Keyword If "${status}" == "FAIL" BuiltIn.Log ${vm_console_output}
+ END