Pass redfishPropertyName earlier argument
It was pointed out that the setDbusProperty method should have an end
that approximately matches dbus-send and busctl set-property in its
arguments, to aid with debug. This seems reasonable.
Tested: Redfish service validator passes.
Change-Id: Ic20295d93c71c957e3e76704e1eda9da187861b1
Signed-off-by: Ginu George <ginugeorge@ami.com>
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/redfish-core/lib/led.hpp b/redfish-core/lib/led.hpp
index c310e3f..8cbe86a 100644
--- a/redfish-core/lib/led.hpp
+++ b/redfish-core/lib/led.hpp
@@ -139,11 +139,10 @@
}
}
setDbusProperty(
- asyncResp, "xyz.openbmc_project.LED.GroupManager",
+ asyncResp, "IndicatorLED", "xyz.openbmc_project.LED.GroupManager",
sdbusplus::message::object_path(
"/xyz/openbmc_project/led/groups/enclosure_identify"),
- "xyz.openbmc_project.Led.Group", "Asserted", "IndicatorLED",
- ledBlinkng);
+ "xyz.openbmc_project.Led.Group", "Asserted", ledBlinkng);
});
}
@@ -229,11 +228,11 @@
// lets set enclosure_identify state also if
// enclosure_identify_blink failed
setDbusProperty(
- asyncResp, "xyz.openbmc_project.LED.GroupManager",
+ asyncResp, "LocationIndicatorActive",
+ "xyz.openbmc_project.LED.GroupManager",
sdbusplus::message::object_path(
"/xyz/openbmc_project/led/groups/enclosure_identify"),
- "xyz.openbmc_project.Led.Group", "Asserted",
- "LocationIndicatorActive", ledState);
+ "xyz.openbmc_project.Led.Group", "Asserted", ledState);
}
});
}