Hello,
I think i've found a bug on cfengine 3.2.3. If someone could confirm I'll
happily open a bug report.
If i use canonify() under handle => body of a promise with iteration
$(this.handle) doesn't work.
Example code:
body common control {
bundlesequence => { "main" };
}
bundle agent main {
files:
"/tmp/one"
handle => canonify("whatever_one"),
create => "yes",
action => logme("$(this.handle)");
}
body action logme(x) {
log_kept => "stdout";
log_repaired => "stdout";
log_failed => "stdout";
log_string => "$(x)";
}
Example output:
%cf-agent -f ./test.cf -K
L:
If i replace
handle => canonify("whatever_one"),
with
handle => "whatever_one",
Output works as expected:
%cf-agent -f ./test.cf -K
L: whatever_one
Should i open a bug report with this?
Thanks a lot.
Regards.
--
La prueba más fehaciente de que existe vida inteligente en otros
planetas, es que no han intentado contactar con nosotros.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine