diff options
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/lib/health.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/redfish-core/lib/health.hpp b/redfish-core/lib/health.hpp index 91279304e5..fe65ebfbcb 100644 --- a/redfish-core/lib/health.hpp +++ b/redfish-core/lib/health.hpp @@ -148,6 +148,11 @@ struct HealthPopulate : std::enable_shared_from_this<HealthPopulate> // being added as children to the 'main' health object for the page void populate() { + if (populated) + { + return; + } + populated = true; getAllStatusAssociations(); getGlobalPath(); } @@ -210,5 +215,6 @@ struct HealthPopulate : std::enable_shared_from_this<HealthPopulate> bool isManagersHealth = false; dbus::utility::ManagedObjectType statuses; std::string globalInventoryPath = "-"; // default to illegal dbus path + bool populated = false; }; } // namespace redfish
\ No newline at end of file |