Issue #2856 has been updated by James Turnbull.

Status changed from Unreviewed to Investigating
Assigned to set to Markus Roberts
Target version set to Puppet - 0.25.2


----------------------------------------
Bug #2856: Setting recursion depth with the recurse parameter is now 
deprecated, please use recurselimit
http://projects.reductivelabs.com/issues/2856

Author: micah -
Status: Investigating
Priority: Normal
Assigned to: Markus Roberts
Category: file
Target version: 0.25.2
Affected version: 0.25.1
Keywords: 
Branch: 


I got this deprecation warning on a file resource that I am managing, which was 
like this:

<pre>
file {    
  "/home/":
    mode => 2755,
    owner => root,
    group => staff,
    recurse => 1;
}
</pre>

Ok, no problem, thanks for the deprecation warning. So I go an lookup the docs 
about how recurselimit should be, it says:

<pre>
recurse: Whether and how deeply to do recursive management. Valid values are 
true, false, inf, remote. Values can match /^[0-9]+$/.
recurselimit: How deeply to do recursive management. Values can match 
/^[0-9]+$/.
</pre>

Ok, so that says to me that I should specify that I want to do recursion (what 
is remote?) and that I should set the recurselimit to be one to match my former 
behavior, so I turned my file resource above into this:

<pre>
file {    
  "/home/":
    mode => 2755,
    owner => root,
    group => staff,
    recurse => true,
    recurselimit => 1;
}
</pre>

However, I am still getting this deprecation notice:

warning: /File[/home/]/recurse: Setting recursion depth with the recurse 
parameter is now deprecated, please use recurselimit

even though I am *not* setting the recursion depth with the recurse parameter. 
I'm not sure if the documentation is wrong here, or this warning is not very 
smart?


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--

You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.


Reply via email to