Make sure we don't evaluate apply rules for fake hosts used in agent checks

fixes #8117
This commit is contained in:
Gunnar Beutner 2015-03-05 21:19:04 +01:00
parent 9181d7ae05
commit 139540b570
1 changed files with 0 additions and 4 deletions

View File

@ -1585,10 +1585,6 @@ Value ApiEvents::ExecuteCommandAPIHandler(const MessageOrigin& origin, const Dic
host->SetExtension("agent_check", true);
static_pointer_cast<DynamicObject>(host)->OnStateLoaded();
static_pointer_cast<DynamicObject>(host)->OnConfigLoaded();
static_pointer_cast<DynamicObject>(host)->OnAllConfigLoaded();
Dictionary::Ptr macros = params->Get("macros");
if (command_type == "check_command") {