Add watchdog changes

This commit is contained in:
Ned Wright
2024-04-16 14:06:43 +00:00
parent 942b2ef8b4
commit 1a1580081c
2 changed files with 234 additions and 63 deletions

View File

@@ -1963,6 +1963,10 @@ private:
<< update_config.getErr();
return;
}
auto policy_mgmt_mode = getSettingWithDefault<string>("management", "profileManagedMode");
if (getOrchestrationMode() == OrchestrationMode::HYBRID || policy_mgmt_mode == "declarative") {
Singleton::Consume<I_DeclarativePolicy>::from<DeclarativePolicyUtils>()->turnOnApplyPolicyFlag();
}
auto policy_version = i_service_controller->getPolicyVersion();
if (!policy_version.empty()) {