Rename getPSUInventoryPath to getPSUInventoryPaths
Rename the utils method/function getPSUInventoryPath() to
getPSUInventoryPaths(). The method/function returns multiple paths in a
vector, so the name should be plural. This will make the return type
more clear. Currently the name implies only one path will be returned.
Tested:
* Verified all automated tests build and run successfully
* Verified getPSUInventoryPaths() returns correct data
Change-Id: I7e215c37e3ce1eb27313bc51348c7f7335c8f67a
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
diff --git a/src/item_updater.cpp b/src/item_updater.cpp
index aea02ee..2760245 100644
--- a/src/item_updater.cpp
+++ b/src/item_updater.cpp
@@ -394,7 +394,7 @@
{
try
{
- auto paths = utils::getPSUInventoryPath(bus);
+ auto paths = utils::getPSUInventoryPaths(bus);
for (const auto& p : paths)
{
try
@@ -558,7 +558,7 @@
const auto& activation = it->second;
const auto& assocs = activation->associations();
- auto paths = utils::getPSUInventoryPath(bus);
+ auto paths = utils::getPSUInventoryPaths(bus);
for (const auto& p : paths)
{
// If there is a present PSU that is not associated with the latest