diff options
Diffstat (limited to 'lib/puppet/transportable.rb')
| -rw-r--r-- | lib/puppet/transportable.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/transportable.rb b/lib/puppet/transportable.rb index bca2e688c..501dd8d89 100644 --- a/lib/puppet/transportable.rb +++ b/lib/puppet/transportable.rb @@ -8,7 +8,7 @@ module Puppet # YAML. class TransObject include Enumerable - attr_accessor :type, :name, :file, :line, :collectable + attr_accessor :type, :name, :file, :line, :collectable, :collected attr_writer :tags @@ -109,7 +109,7 @@ module Puppet if child.is_a? self.class child.collectstrip! else - if child.collectable + if child.collectable and ! child.collected @children.delete(child) end end |
