mirror of https://github.com/Icinga/icinga2.git
compat: fix customvar exclude
This commit is contained in:
parent
62d0b6c30c
commit
1a798232ba
|
@ -478,8 +478,13 @@ Dictionary::Ptr CompatUtility::GetCustomVariableConfig(DynamicObject::Ptr const&
|
||||||
Value value;
|
Value value;
|
||||||
BOOST_FOREACH(boost::tie(key, value), custom) {
|
BOOST_FOREACH(boost::tie(key, value), custom) {
|
||||||
|
|
||||||
if (key != "notes" && key != "action_url" && key != "notes_url" &&
|
if (key == "notes" ||
|
||||||
key != "icon_image" && key != "icon_image_alt" && key != "statusmap_image" && "2d_coords")
|
key == "action_url" ||
|
||||||
|
key == "notes_url" ||
|
||||||
|
key == "icon_image" ||
|
||||||
|
key == "icon_image_alt" ||
|
||||||
|
key == "statusmap_image" ||
|
||||||
|
key == "2d_coords")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
customvars->Set(key, value);
|
customvars->Set(key, value);
|
||||||
|
|
Loading…
Reference in New Issue