summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/file_serving/fileset.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/file_serving/fileset.rb b/lib/puppet/file_serving/fileset.rb
index 2076d0c4d..a6a4b62a1 100644
--- a/lib/puppet/file_serving/fileset.rb
+++ b/lib/puppet/file_serving/fileset.rb
@@ -67,7 +67,7 @@ class Puppet::FileServing::Fileset
@ignore = []
@links = :manage
@recurse = false
- @recurselimit = 0 # infinite recursion
+ @recurselimit = :infinite
if options.is_a?(Puppet::Indirector::Request)
initialize_from_request(options)
@@ -90,7 +90,7 @@ class Puppet::FileServing::Fileset
# place for all of the logic around recursion.
def recurse?(depth)
# recurse if told to, and infinite recursion or current depth not at the limit
- self.recurse and (self.recurselimit == 0 or depth <= self.recurselimit)
+ self.recurse and (self.recurselimit == :infinite or depth <= self.recurselimit)
end
def initialize_from_hash(options)