State Manager reset power policy

Power policy drives whether the host is going to stay Off or Running.

Resolves openbmc/openbmc-test-automation#327

Change-Id: I4e8f8c18b83bfe01869db507039a2fa9e5552bdf
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 0ac02f8..a5bb0b9 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -569,6 +569,10 @@
     ${currentPolicy}=  Read Attribute     ${HOST_SETTING}   power_policy
     Should Be Equal    ${currentPolicy}   ${policy}
 
+Get System Power Policy
+    [Documentation]  Get the BMC power policy.
+    ${currentPolicy}=  Read Attribute  ${HOST_SETTING}  power_policy
+    [Return]  ${currentPolicy}
 
 Set BMC Reset Reference Time
     [Documentation]  Set current boot time as a reference and increment