Forum: Cfengine Help Subject: promise not respecting lock if log_string value changes Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,22212,22212#msg-22212
I have noticed that if the contents of log_string changes between executions of cf-agent (for example using $(sys.date)) the promise no longer follows any locks. I suspect that cf-agent takes the contents of log_string into account when creating an id/hash for the promise lock, but I don't know for sure. It seems that this is not intended given the examples of log_string using $(sys.date) in the ref guide. I am testing with 3.1.5. Does anyone else see this behavior? body common control { bundlesequence => { "test" }; } bundle agent test { files: "/tmp/blah" handle => "test_file", comment => "This is my favorite file.", create => "true", action => if_elapsed_test("5"); commands: "/bin/date" action => if_elapsed_test("5"); } body action if_elapsed_test(x) { ifelapsed => "$(x)"; expireafter => "$(x)"; log_string => "$(sys.date)"; #log_string => "test"; } _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine