Add REDFISH_SUPPORTED check in the power on teardown
Note: This is to handle REST and Redfish backward compatibility.
Change-Id: Ibd209b939e409cf82c5b22c0cb0489925f6a49de
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/systems/test_power_operations.robot b/redfish/systems/test_power_operations.robot
index bcfc854..30a35b5 100644
--- a/redfish/systems/test_power_operations.robot
+++ b/redfish/systems/test_power_operations.robot
@@ -70,4 +70,8 @@
FFDC On Test Case Fail
${sol_log}= Stop SOL Console Logging
Log ${sol_log}
- Set Auto Reboot ${1}
+
+ Run Keyword If ${REDFISH_SUPPORTED}
+ ... Redfish Set Auto Reboot RetryAttempts
+ ... ELSE
+ ... Set Auto Reboot ${1}