>
>   "$(array_name[$(sys.host)][1])"::     <-- is this possible?

Yes, but not as double colon suffixed "class::" but as a promise
attribute "ifvarclass => "$(class)".

In other words, add

   ifvarclass => "$(array_name[$(sys.host)][1])"

to your promise.

See section "2.4 When and where are promises made?" in the reference manual.

Best,
Aleksey
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to