Fix bug in dbus based gpio config parsing.

The dbus based gpio configs can be read from the
json file.

TESTED:Tested and verified in YosemiteV2.

Signed-off-by: Logananth Sundararaj <logananth.s@hcl.com>
Change-Id: Iae67aea7dec2a67796a45418819344284f94ec4c
diff --git a/power-control-x86/src/power_control.cpp b/power-control-x86/src/power_control.cpp
index ce2902f..91c2e5c 100644
--- a/power-control-x86/src/power_control.cpp
+++ b/power-control-x86/src/power_control.cpp
@@ -2416,7 +2416,7 @@
             // params corresponding to the gpio config instance
             for (auto& [key, dbusParamName] : dbusParams)
             {
-                if (!gpios.contains(dbusParamName))
+                if (!gpioConfig.contains(dbusParamName))
                 {
                     std::string errMsg =
                         "The " + dbusParamName +
@@ -2426,12 +2426,13 @@
                     return -1;
                 }
             }
-            tempGpioData->dbusName = gpios[dbusParams[DbusConfigType::name]];
-            tempGpioData->path = gpios[dbusParams[DbusConfigType::path]];
+            tempGpioData->dbusName =
+                gpioConfig[dbusParams[DbusConfigType::name]];
+            tempGpioData->path = gpioConfig[dbusParams[DbusConfigType::path]];
             tempGpioData->interface =
-                gpios[dbusParams[DbusConfigType::interface]];
+                gpioConfig[dbusParams[DbusConfigType::interface]];
             tempGpioData->lineName =
-                gpios[dbusParams[DbusConfigType::property]];
+                gpioConfig[dbusParams[DbusConfigType::property]];
         }
     }