Address issue for deprecated syntax
Change-Id: I15a1f420e4f515f04c10061391b6d4b59abc88f1
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/code_update_utils.robot b/lib/code_update_utils.robot
index 88b25f7..73c654a 100644
--- a/lib/code_update_utils.robot
+++ b/lib/code_update_utils.robot
@@ -36,10 +36,11 @@
${host_list}= Create List
${sw_list}= Read Properties ${SOFTWARE_VERSION_URI}
- :FOR ${index} IN @{sw_list}
- \ ${attr_purpose}= Read Software Attribute ${index} Purpose
- \ Continue For Loop If '${attr_purpose}' != '${version_type}'
- \ Append To List ${host_list} ${index}
+ FOR ${index} IN @{sw_list}
+ ${attr_purpose}= Read Software Attribute ${index} Purpose
+ Continue For Loop If '${attr_purpose}' != '${version_type}'
+ Append To List ${host_list} ${index}
+ END
[Return] ${host_list}
@@ -240,14 +241,14 @@
... AND
... Return From Keyword
- Should Be Equal As Strings &{software_state}[Activation] ${READY}
+ Should Be Equal As Strings ${software_state}[Activation] ${READY}
# Request the image to be activated.
${args}= Create Dictionary data=${REQUESTED_ACTIVE}
Write Attribute ${SOFTWARE_VERSION_URI}${version_id}
... RequestedActivation data=${args}
${software_state}= Read Properties ${SOFTWARE_VERSION_URI}${version_id}
- Should Be Equal As Strings &{software_state}[RequestedActivation]
+ Should Be Equal As Strings ${software_state}[RequestedActivation]
... ${REQUESTED_ACTIVE}
# Does caller want to wait for activation to complete?
@@ -256,7 +257,7 @@
# Verify code update was successful and Activation state is Active.
Wait For Activation State Change ${version_id} ${ACTIVATING}
${software_state}= Read Properties ${SOFTWARE_VERSION_URI}${version_id}
- Should Be Equal As Strings &{software_state}[Activation] ${ACTIVE}
+ Should Be Equal As Strings ${software_state}[Activation] ${ACTIVE}
# Uploaded and activated image should have priority set to 0. Due to timing
# contention, it may take up to 10 seconds to complete updating priority.
@@ -491,10 +492,11 @@
[Documentation] Get List of Images
[Arguments] ${installed_images}
- :FOR ${uri} IN @{installed_images}
- \ ${resp}= OpenBMC Get Request ${uri}
- \ ${json}= To JSON ${resp.content}
- \ Log ${json["data"]}
+ FOR ${uri} IN @{installed_images}
+ ${resp}= OpenBMC Get Request ${uri}
+ ${json}= To JSON ${resp.content}
+ Log ${json["data"]}
+ END
Check Software Object Attribute