mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
IcingaServiceForm: Support apply for
rule for instantiable dictionary and array
This commit is contained in:
parent
d3e358207b
commit
dfd9764e12
@ -628,8 +628,7 @@ class IcingaServiceForm extends DirectorObjectForm
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
->join(['iop' => 'icinga_host_property'], 'dp.uuid = iop.property_uuid', [])
|
->join(['iop' => 'icinga_host_property'], 'dp.uuid = iop.property_uuid', [])
|
||||||
->where("value_type = 'array' AND instantiable = 'y'")
|
->where("value_type IN ('array', 'dict') AND instantiable = 'y'");
|
||||||
->orWhere("value_type = 'dict'");
|
|
||||||
|
|
||||||
$vars = $this->db->getDbAdapter()->fetchAll($query);
|
$vars = $this->db->getDbAdapter()->fetchAll($query);
|
||||||
|
|
||||||
@ -659,7 +658,7 @@ class IcingaServiceForm extends DirectorObjectForm
|
|||||||
'all objects with the custom attribute specified. ' .
|
'all objects with the custom attribute specified. ' .
|
||||||
'E.g selecting "host.vars.custom_attr" will generate "for (config in ' .
|
'E.g selecting "host.vars.custom_attr" will generate "for (config in ' .
|
||||||
'host.vars.array_var)" where "config" will be accessible through "$config$". ' .
|
'host.vars.array_var)" where "config" will be accessible through "$config$". ' .
|
||||||
'NOTE: only custom variables of type "Array" are eligible.'
|
'NOTE: only custom variables of type "Array" and "Dictionary" are eligible.'
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user