Hello, On Thu, Jun 21, 2012 at 1:23 PM, Neil Watson <cfeng...@watson-wilson.ca> wrote: > On Thu, Jun 21, 2012 at 01:08:10PM +0200, Mark Burgess wrote: >> >> Cf-promises updates this when it executes successfully. > > I think that this only happens when called via cf-execd. > > ettin:/var/cfengine/masterfiles# rm cf_promises_validated > ettin:/var/cfengine/masterfiles# cf-promises > ettin:/var/cfengine/masterfiles# ls -ltr cf_pro* > ls: cannot access cf_pro*: No such file or directory >
Indeed, looking at the C sources for v3.3.3, it seems that `masterfiles/cf_promises_validated` is only touched by functions NewPromiseProposals() and CheckPromises() in `generic_agent.c`. (Plus `bootstrap.c` but that does not count.) These functions are only called by `cf-execd` and `cf-serverd`. Would it be sensible to add a command-line switch to `cf-promises` to force update of `masterfiles/cf_promises_validated` ? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine