mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
Checking mode directly
This commit is contained in:
parent
de31400712
commit
3282774432
@ -219,7 +219,7 @@ private:
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
auto update_communication = Singleton::Consume<I_UpdateCommunication>::by<OrchestrationComp>();
|
auto update_communication = Singleton::Consume<I_UpdateCommunication>::by<OrchestrationComp>();
|
||||||
auto agent_mode = Singleton::Consume<I_AgentDetails>::by<OrchestrationComp>()->getOrchestrationMode();
|
auto agent_mode = getOrchestrationMode();
|
||||||
auto policy_mgmt_mode = getSettingWithDefault<string>("management", "profileManagedMode");
|
auto policy_mgmt_mode = getSettingWithDefault<string>("management", "profileManagedMode");
|
||||||
if (agent_mode == OrchestrationMode::HYBRID || policy_mgmt_mode == "declarative") {
|
if (agent_mode == OrchestrationMode::HYBRID || policy_mgmt_mode == "declarative") {
|
||||||
update_communication->authenticateAgent();
|
update_communication->authenticateAgent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user