storagecommands: fix getSensorMap() error
The CriSensor frame display wrong sensor value due to
GetManagedObjects method call failed in getSensorMap().
Parsing correct path to avoid GetManagedObjects call failed.
Tested on Bletchley.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I2fd57d61105f3a6619204be9c93a1db316cb83f7
diff --git a/src/storagecommands.cpp b/src/storagecommands.cpp
index d79c6d4..6cc51e5 100644
--- a/src/storagecommands.cpp
+++ b/src/storagecommands.cpp
@@ -97,8 +97,8 @@
updateTimeMap[sensorConnection] = now;
auto managedObj = dbus.new_method_call(
- sensorConnection.c_str(), "/", "org.freedesktop.DBus.ObjectManager",
- "GetManagedObjects");
+ sensorConnection.c_str(), "/xyz/openbmc_project/sensors",
+ "org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
ManagedObjectSensor managedObjects;
try