Change to state.py function get_state() to indicate which version of
"Get BMC State" to use.

This change is required by the addition of a new "Get BMC State"
function in state_manager.robot.

Change-Id: I83fe83731d04b8825439251deb09c26c1549454c
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/state.py b/lib/state.py
index 67b8d2b..c59c359 100755
--- a/lib/state.py
+++ b/lib/state.py
@@ -339,7 +339,12 @@
         # Strip everything up to the final period.
         chassis = re.sub(r'.*\.', "", chassis)
 
-    cmd_buf = ["Get BMC State", "quiet=${" + str(quiet) + "}"]
+    if OBMC_STATES_VERSION== 0:
+        qualifier = "utils"
+    else:
+        qualifier = "state_manager"
+
+    cmd_buf = [qualifier + ".Get BMC State", "quiet=${" + str(quiet) + "}"]
     grp.rdpissuing_keyword(cmd_buf)
     bmc = BuiltIn().run_keyword(*cmd_buf)