- \ BuiltIn.Log ${ips_and_console_log[2]}
- \ BuiltIn.Run Keyword If '${ips_and_console_log[0]}' != 'None' Collections.Append To List ${vm_ips} ${ips_and_console_log[0]}
+ \ # 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.
+ \ 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
+ \ ${rc} ${vm_console_output}= BuiltIn.Run Keyword If ${status} == "FAIL" Run And Return Rc And Output openstack console log show ${vm}
+ \ BuiltIn.Run Keyword If "${status}" == "FAIL" BuiltIn.Log ${vm_console_output}