Don't convert loop variables to string when using apply-for

fixes #8519
This commit is contained in:
Gunnar Beutner 2015-02-24 17:51:16 +01:00
parent 2a076e8283
commit 551cb6ae87
4 changed files with 4 additions and 4 deletions

View File

@ -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()) {

View File

@ -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()) {

View File

@ -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()) {

View File

@ -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()) {