Updated FOR loop syntax to new robot version
Signed-off-by: Marissa Garza <garzam@us.ibm.com>
Change-Id: Iad394c40eef9508db6840ed9692d102910a5c5df
diff --git a/lib/ipmi_client.robot b/lib/ipmi_client.robot
index e20be6c..5c12ac5 100755
--- a/lib/ipmi_client.robot
+++ b/lib/ipmi_client.robot
@@ -246,11 +246,12 @@
Set Global Variable ${arrayByte} array:byte:
@{listargs}= Split String ${args}
${index}= Set Variable ${0}
- :FOR ${word} IN @{listargs}
- \ Run Keyword if ${index} == 0 Set NetFn Byte ${word}
- \ Run Keyword if ${index} == 1 Set Cmd Byte ${word}
- \ Run Keyword if ${index} > 1 Set Array Byte ${word}
- \ ${index}= Set Variable ${index + 1}
+ FOR ${word} IN @{listargs}
+ Run Keyword if ${index} == 0 Set NetFn Byte ${word}
+ Run Keyword if ${index} == 1 Set Cmd Byte ${word}
+ Run Keyword if ${index} > 1 Set Array Byte ${word}
+ ${index}= Set Variable ${index + 1}
+ END
${length}= Get Length ${arrayByte}
${length}= Evaluate ${length} - 1
${arrayByteLocal}= Get Substring ${arrayByte} 0 ${length}