Forum: CFEngine Help Subject: files promises with purge option are not repaired Author: crd Link to topic: https://cfengine.com/forum/read.php?3,23748,23748#msg-23748
Hi, I have a files promise which purges files similar to the following: bundle agent test { files: "/etc/mysql/." create => "true", depth_search => recurse("inf"), copy_from => purge_cp("$(conf_path)"), classes => if_repaired("conf_changed_dosomething"); } body copy_from purge_cp(from) { source => "$(from)"; purge => "true"; } My problem is that conf_changed_dosomething is not being defined when a file is purged. When a file is added, the promise is repaired and all is well. Is there a reason why a promise isn't counted as repaired when an extra file is purged? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine