fo...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Seperating copy_from and permission promise > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,16834,16912#msg-16912 > > I think that this output better explains, to me, what you are seeing. > > cf3 ......................................................... > cf3 Promise handle: > cf3 Promise made by: /tmp/test.cf > cf3 ......................................................... > cf3 > cf3 -> Copy file /tmp/test.cf from /home/nwatson/.cfagent/inputs/test.cf > check > cf3 -> /tmp/test.cf wasn't at destination (copying) > cf3 -> Copying from localhost:/home/nwatson/.cfagent/inputs/test.cf > cf3 -> Copy of regular file succeeded /home/nwatson/.cfagent/inputs/test.cf > to /tmp/test.cf.cfnew > cf3 -> Not attempting to preserve file permissions from the source > cf3 -> File permissions on /tmp/test.cf as promised > cf3 ?> defining promise result class notrepaired > cf3 -> Updated file from localhost:/home/nwatson/.cfagent/inputs/test.cf > cf3 ?> defining promise result class repaired > cf3 Performance(Copy(localhost:/home/nwatson/.cfagent/inputs/test.cf > > /tmp/test.cf)): time=0.0003 secs, av=0.0003 +/- 0.0017 > cf3 Existing connection just became free... > cf3 > cf3 ========================================================= > cf3 reports in bundle test (1) > cf3 ========================================================= > cf3 > cf3 Verifying SQL table promises is only available with Cfengine Nova or above > cf3 > cf3 ......................................................... > cf3 Promise handle: > cf3 Promise made by: promised repaired > cf3 ......................................................... > cf3 > cf3 Reporting about this... > cf3 R: promised repaired > cf3 > cf3 ......................................................... > cf3 Promise handle: > cf3 Promise made by: promise kept > cf3 ......................................................... > cf3 > cf3 Reporting about this... > cf3 R: promise kept > cf3 > cf3 + Private classes augmented: > cf3 > cf3 - Private classes diminished: > cf3 > cf3 > cf3 > > > You are correct that both promise repaired and promise kept are defined at > the same time. I do not know is if this is desired behaviour. Personally I > would say no. Does anyone know the answer to this? > > > I know there has been some modifications on this subject on the 13/14 Jan, only related to warning only. I would say that if one doesn't state the expected permission, then the permission part shouldn't set any class
Nicolas _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine