Forum: CFEngine Help Subject: abortclasses not working on commands Author: dhubler Link to topic: https://cfengine.com/forum/read.php?3,25504,25504#msg-25504
Thanks for releasing 3.3.0! I just downloaded cfengine community v3.3.0 and this simple test of abortclasses is not working as I'd expect. abortclasses seems to work fine if i declare it in classes: section. Anyone see my problem? body agent control { abortclasses => { "fatal_error" }; } bundle agent test1 { commands: any:: "/bin/ls" args => "/some/bogus", classes => if_notkept("fatal_error"); reports: fatal_error:: "there was an error that should have aborted"; } bundle agent test2 { commands: any:: "/bin/ls" args => "/tmp", classes => if_ok("should_not_get_here"); reports: should_not_get_here:: "you should not see this message"; } body classes if_ok(x) { promise_repaired => { "$(x)" }; promise_kept => { "$(x)" }; } body classes if_notkept(x) { repair_failed => { "$(x)" }; repair_denied => { "$(x)" }; repair_timeout => { "$(x)" }; } body common control { bundlesequence => { "test1", "test2" }; } _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine