From 32827744321ad232bb412d3b35a8082b28e17d9f Mon Sep 17 00:00:00 2001 From: Ned Wright Date: Thu, 21 Dec 2023 17:53:03 +0000 Subject: [PATCH] Checking mode directly --- components/security_apps/orchestration/orchestration_comp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/security_apps/orchestration/orchestration_comp.cc b/components/security_apps/orchestration/orchestration_comp.cc index 61e7e20..9b7863b 100755 --- a/components/security_apps/orchestration/orchestration_comp.cc +++ b/components/security_apps/orchestration/orchestration_comp.cc @@ -219,7 +219,7 @@ private: start() { auto update_communication = Singleton::Consume::by(); - auto agent_mode = Singleton::Consume::by()->getOrchestrationMode(); + auto agent_mode = getOrchestrationMode(); auto policy_mgmt_mode = getSettingWithDefault("management", "profileManagedMode"); if (agent_mode == OrchestrationMode::HYBRID || policy_mgmt_mode == "declarative") { update_communication->authenticateAgent();