mirror of https://github.com/Icinga/icinga2.git
Don't convert loop variables to string when using apply-for
fixes #8519
This commit is contained in:
parent
2a076e8283
commit
551cb6ae87
|
@ -123,7 +123,7 @@ bool Dependency::EvaluateApplyRule(const Checkable::Ptr& checkable, const ApplyR
|
|||
Array::Ptr arrclone = arr->ShallowClone();
|
||||
|
||||
ObjectLock olock(arrclone);
|
||||
BOOST_FOREACH(const String& instance, arrclone) {
|
||||
BOOST_FOREACH(const Value& instance, arrclone) {
|
||||
String name = rule.GetName();
|
||||
|
||||
if (!rule.GetFKVar().IsEmpty()) {
|
||||
|
|
|
@ -121,7 +121,7 @@ bool Notification::EvaluateApplyRule(const Checkable::Ptr& checkable, const Appl
|
|||
Array::Ptr arr = vinstances;
|
||||
|
||||
ObjectLock olock(arr);
|
||||
BOOST_FOREACH(const String& instance, arr) {
|
||||
BOOST_FOREACH(const Value& instance, arr) {
|
||||
String name = rule.GetName();
|
||||
|
||||
if (!rule.GetFKVar().IsEmpty()) {
|
||||
|
|
|
@ -121,7 +121,7 @@ bool ScheduledDowntime::EvaluateApplyRule(const Checkable::Ptr& checkable, const
|
|||
Array::Ptr arrclone = arr->ShallowClone();
|
||||
|
||||
ObjectLock olock(arrclone);
|
||||
BOOST_FOREACH(const String& instance, arrclone) {
|
||||
BOOST_FOREACH(const Value& instance, arrclone) {
|
||||
String name = rule.GetName();
|
||||
|
||||
if (!rule.GetFKVar().IsEmpty()) {
|
||||
|
|
|
@ -109,7 +109,7 @@ bool Service::EvaluateApplyRule(const Host::Ptr& host, const ApplyRule& rule)
|
|||
Array::Ptr arrclone = arr->ShallowClone();
|
||||
|
||||
ObjectLock olock(arrclone);
|
||||
BOOST_FOREACH(const String& instance, arrclone) {
|
||||
BOOST_FOREACH(const Value& instance, arrclone) {
|
||||
String name = rule.GetName();
|
||||
|
||||
if (!rule.GetFKVar().IsEmpty()) {
|
||||
|
|
Loading…
Reference in New Issue