diff options
| author | Luke Kanies <luke@madstop.com> | 2007-08-22 16:14:39 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-08-22 16:14:39 -0500 |
| commit | f1727f18ab933df9ecbecc2da8fad72eb441e0d5 (patch) | |
| tree | 4cf9e123dfa02a85489b38a73aa5a778525fedf5 /lib/puppet/parser | |
| parent | 4eb87ed7c8829a6fbc558595be9149e9b3cf5b36 (diff) | |
| download | puppet-f1727f18ab933df9ecbecc2da8fad72eb441e0d5.tar.gz puppet-f1727f18ab933df9ecbecc2da8fad72eb441e0d5.tar.xz puppet-f1727f18ab933df9ecbecc2da8fad72eb441e0d5.zip | |
Adding the topscope metadata to the configuration being returned to the client, just like it expects, and fixing how the resource handler calls the master type.
Diffstat (limited to 'lib/puppet/parser')
| -rw-r--r-- | lib/puppet/parser/configuration.rb | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/puppet/parser/configuration.rb b/lib/puppet/parser/configuration.rb index 26553d443..ea784da05 100644 --- a/lib/puppet/parser/configuration.rb +++ b/lib/puppet/parser/configuration.rb @@ -344,8 +344,23 @@ class Puppet::Parser::Configuration end end - # Clear the cache to encourage the GC + # Retrive the bucket for the top-level scope and set the appropriate metadata. result = buckets[topscope] + case topscope.type + when "": result.type = "main" + when nil: devfail "A Scope with no type" + else + result.type = topscope.type + end + if topscope.name + result.name = topscope.name + end + + unless classlist.empty? + result.classes = classlist + end + + # Clear the cache to encourage the GC buckets.clear return result end |
