[Pkg-puppet-devel] Bug#500848: comparison of String with 0 failed
Jayen Ashar
jayen at science.unsw.edu.au
Thu Oct 2 00:38:29 UTC 2008
ok, that helped, and now i have a different problem.
if you've got control over the docs, maybe make the tidy/recurse section
like the file/recurse section, in that it lists valid values. I thought
they'd be the same.
http://reductivelabs.com/trac/puppet/wiki/TypeReference#file
recurse
Whether and how deeply to do recursive management. Valid values are
true, false, inf. Values can also match (?-mix:^[0-9]+$).
http://reductivelabs.com/trac/puppet/wiki/TypeReference#tidy
recurse
If target is a directory, recursively descend into the directory looking
for files to tidy.
thanks,
jayen
Matthew Palmer wrote:
> On Thu, Oct 02, 2008 at 09:58:23AM +1000, Jayen Ashar wrote:
>> Package: puppet
>> Version: 0.24.4-8~bpo40+1
>> Severity: minor
>>
>> my puppetmaster manifest has:
>> tidy {
>> "/c/z3208682/test_tidy":
>> matches => "README.desktop",
>> recurse => inf,
>> require => [ File["/etc/kde-profile"], File["/etc/kderc"]];
>> }
>>
>> my system has:
>> /c/z3208682/test_tidy/
>> /c/z3208682/test_tidy/z3208682
>> /c/z3208682/test_tidy/z3208682/Desktop
>> /c/z3208682/test_tidy/z3208682/Desktop/README.desktop
>>
>> the puppet client gets the error:
>> Thu Oct 02 04:52:36 +1000 2008 //Node[default]/staff/staff_readme/Tidy[/c/z3208682/test_tidy] (err): Failed to generate additional resources during transaction: comparison of String with 0 failed
>
> If I remember correctly, recurse => inf doesn't work (this goes back to at
> least a 0.1x release) and you need to use recurse => true instead. Try
> that, and if it works then at least everyone knows the source of the
> problem. <grin>
>
> - Matt
--
Jayen Ashar
Technical Officer
Computing Center
School of Mathematics and Statistics
M029, Red Center
The University of New South Wales SYDNEY NSW 2052
Ph: + 61 (2) 93857016
Fax: + 61 (2) 93857192
CRICOS provider code: 00098G
More information about the Pkg-puppet-devel
mailing list