Forum: Cfengine Help
Subject: Re: Behaviour change in 3.1.4
Author: hristob
Link to topic: https://cfengine.com/forum/read.php?3,21358,21413#msg-21413
Hmm it looks that I found the "solution"
had to change following line from :
"pw" int =>
readstringarray("rpw","$(sys.workdir)/ppkeys/rootpw.txt
Forum: Cfengine Help
Subject: Re: Behaviour change in 3.1.4
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,21358,21411#msg-21411
You would probably see them in debug mode, try -d2
Cheers,
--Nakarin
___
Help-cfengine mailing list
Forum: Cfengine Help
Subject: Re: Behaviour change in 3.1.4
Author: shownoob
Link to topic: https://cfengine.com/forum/read.php?3,21358,21409#msg-21409
โหดสุดยอด !!
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/l
Forum: Cfengine Help
Subject: Re: Behaviour change in 3.1.4 - see array contents
Author: hristob
Link to topic: https://cfengine.com/forum/read.php?3,21358,21401#msg-21401
Just to troubleshot how I can see contents of the array?
I suspect the change is in readstringarray function.
__
Forum: Cfengine Help
Subject: Re: Behaviour change in 3.1.4
Author: hristob
Link to topic: https://cfengine.com/forum/read.php?3,21358,21372#msg-21372
I did tested with tar too
Same result
But when I use version 3.0.4 it works.
Wheird?!
___
Help-cfen
Forum: Cfengine Help
Subject: Re: Behaviour change in 3.1.4
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,21358,21371#msg-21371
I just have a time to test my code. It worked perfectly for me. I'm on Mac
10.6.6 with cfengine tarball from the org site.
$ cat /tmp/rootpw.t
Forum: Cfengine Help
Subject: Re: Behaviour change in 3.1.4
Author: hristob
Link to topic: https://cfengine.com/forum/read.php?3,21358,21370#msg-21370
Unfortunately same result...
-> Setting field sub-value $(rpw[1]) in /etc/shadow
-> Edited field inside file object /etc/shadow
-> Edited file
Forum: Cfengine Help
Subject: Re: Behaviour change in 3.1.4
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,21358,21364#msg-21364
You got a plain string in return so my guesswork is an array was not in place.
I urged you to workaround a bit to populate an array outside edit