mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 08:34:20 +02:00
parent
c42a582307
commit
5ccdf017ac
@ -369,13 +369,13 @@ bool Host::ResolveMacro(const String& macro, const CheckResult::Ptr&, String *re
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Dictionary::Ptr vars = GetVars();
|
||||
Dictionary::Ptr vars = GetVars();
|
||||
|
||||
if (vars && vars->Contains(key)) {
|
||||
*result = vars->Get(key);
|
||||
return true;
|
||||
}
|
||||
if (vars && vars->Contains(macro)) {
|
||||
*result = vars->Get(macro);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -156,12 +156,13 @@ bool IcingaApplication::ResolveMacro(const String& macro, const CheckResult::Ptr
|
||||
return true;
|
||||
}
|
||||
|
||||
Dictionary::Ptr vars = GetVars();
|
||||
}
|
||||
|
||||
if (vars && vars->Contains(key)) {
|
||||
*result = vars->Get(key);
|
||||
return true;
|
||||
}
|
||||
Dictionary::Ptr vars = GetVars();
|
||||
|
||||
if (vars && vars->Contains(macro)) {
|
||||
*result = vars->Get(macro);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -199,13 +199,13 @@ bool Service::ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Stri
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Dictionary::Ptr vars = GetVars();
|
||||
Dictionary::Ptr vars = GetVars();
|
||||
|
||||
if (vars && vars->Contains(key)) {
|
||||
*result = vars->Get(key);
|
||||
return true;
|
||||
}
|
||||
if (vars && vars->Contains(macro)) {
|
||||
*result = vars->Get(macro);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -79,13 +79,13 @@ bool User::ResolveMacro(const String& macro, const CheckResult::Ptr&, String *re
|
||||
*result = GetDisplayName();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Dictionary::Ptr vars = GetVars();
|
||||
Dictionary::Ptr vars = GetVars();
|
||||
|
||||
if (vars && vars->Contains(key)) {
|
||||
*result = vars->Get(key);
|
||||
return true;
|
||||
}
|
||||
if (vars && vars->Contains(macro)) {
|
||||
*result = vars->Get(macro);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user