Fixed object has no attribute 'SYSTEM_STATE_URI' error.

Running extended/test_host_ras.robot resulted in the following failure:

AttributeError: 'module' object has no attribute 'SYSTEM_STATE_URI'

This change will fix the failure.

Change-Id: I90c224e65463ec07bffd4bd7bb48374fb7a31d9e
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/state.py b/lib/state.py
index d482f81..e7a1444 100755
--- a/lib/state.py
+++ b/lib/state.py
@@ -50,8 +50,19 @@
 base_path = os.path.dirname(os.path.dirname(
                             imp.find_module("gen_robot_print")[1])) + os.sep
 sys.path.append(base_path + "data/")
-import variables as var
 
+# Previously, I had this coded:
+# import variables as var
+# However, we ran into a problem where a robot program did this...
+# Variables           ../../lib/ras/variables.py
+# Prior to doing this...
+# Library            ../lib/state.py
+
+# This caused the wrong variables.py file to be selected.  Attempts to fix this
+# have failed so far.  For the moment, we will hard-code the value we need from
+# the file.
+
+SYSTEM_STATE_URI = "/xyz/openbmc_project/state/"
 
 # The BMC code has recently been changed as far as what states are defined and
 # what the state values can be.  This module now has a means of processing both
@@ -595,7 +606,7 @@
     need_rest = (len(req_rest) > 0)
     state = DotDict()
     if need_rest:
-        cmd_buf = ["Read Properties", var.SYSTEM_STATE_URI + "enumerate",
+        cmd_buf = ["Read Properties", SYSTEM_STATE_URI + "enumerate",
                    "quiet=${" + str(quiet) + "}"]
         grp.rdpissuing_keyword(cmd_buf)
         status, ret_values = \