diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/node/configuration.rb | 1 | ||||
| -rw-r--r-- | lib/puppet/type.rb | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/puppet/node/configuration.rb b/lib/puppet/node/configuration.rb index 8cb6ed1f9..9cd23926e 100644 --- a/lib/puppet/node/configuration.rb +++ b/lib/puppet/node/configuration.rb @@ -47,6 +47,7 @@ class Puppet::Node::Configuration < Puppet::PGraph else @resource_table[ref] = resource end + resource.configuration = self add_vertex!(resource) end diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb index b4b6e3b18..03f571d4a 100644 --- a/lib/puppet/type.rb +++ b/lib/puppet/type.rb @@ -44,7 +44,9 @@ class Type # that it is clear whether it operates on all attributes (thus has 'attr' in # the method name, or whether it operates on a specific type of attributes. attr_accessor :file, :line - attr_reader :parent + + # The configuration that this resource is stored in. + attr_accessor :configuration attr_writer :title attr_writer :noop |
