Hello Bertalan,

how about using an array instead?

Example:
vars.attribute = [ "value1" ]
vars.attribute += [ "value2" ]

apply1:
assign where "value1" in vars.attribute

apply2:
assign where "value2" in vars.attribute

hth
Kai


>>> On 10.09.2015 at 15:36, Bertalan Voros <bertalan.vo...@gmail.com> wrote:
> Hello All,
> 
> If there is a variable defined twice on one object, which value gets used?
> Does it get combined?
> 
> Example:
> vars.attribute = "value1"
> vars.attribute = "value2"
> 
> There are then two different apply rules using this.
> 
> apply1:
> assign where vars.attribute == "value1"
> 
> apply2 (somewhere else)
> assign where vars.attribute == "value2"
> 
> Can I expect both to take effect?




_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to