diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-08 20:38:44 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-08 20:38:44 +0000 |
commit | c90d0b1144c095ecd16f3e3243b003adc686675c (patch) | |
tree | 26efeccb24a3f4c019b04ee3a196eb768ebf096b /lib/puppet/type/component.rb | |
parent | 7c358df27b17e13a42e9b6af3b946e2e91f9785d (diff) | |
download | puppet-c90d0b1144c095ecd16f3e3243b003adc686675c.tar.gz puppet-c90d0b1144c095ecd16f3e3243b003adc686675c.tar.xz puppet-c90d0b1144c095ecd16f3e3243b003adc686675c.zip |
Fixing #157. Objects are no longer allowed to be their own parents, and there are checks in both directions to stop this.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1246 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/type/component.rb')
-rw-r--r-- | lib/puppet/type/component.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/puppet/type/component.rb b/lib/puppet/type/component.rb index b10fd2471..9123bbe75 100644 --- a/lib/puppet/type/component.rb +++ b/lib/puppet/type/component.rb @@ -141,20 +141,6 @@ module Puppet return @name end - def push(*ary) - ary.each { |child| - unless child.is_a?(Puppet::Element) - self.debug "Got object of type %s" % child.class - self.devfail( - "Containers can only contain Puppet::Elements, not %s" % - child.class - ) - end - @children.push child - child.parent = self - } - end - def refresh @children.collect { |child| if child.respond_to?(:refresh) |