diff options
| author | Rick Bradley <rick@rickbradley.com> | 2007-10-04 08:04:44 -0500 |
|---|---|---|
| committer | Rick Bradley <rick@rickbradley.com> | 2007-10-04 08:04:44 -0500 |
| commit | 92d23e0398ffbaf7e264bb7ff716bd6f83130b07 (patch) | |
| tree | af4a9296a11733c4636a88d38925804ea6f0793d /lib/puppet/node | |
| parent | 1334b786ac622a6094ba68b3e66fce3f5841deed (diff) | |
| parent | bd8e38236a23ae687c418fcbb90e5f61c8c67b01 (diff) | |
Merge branch 'master' of git://reductivelabs.com/puppet into routing
Diffstat (limited to 'lib/puppet/node')
| -rw-r--r-- | lib/puppet/node/configuration.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/puppet/node/configuration.rb b/lib/puppet/node/configuration.rb index 53f63d003..3571eecda 100644 --- a/lib/puppet/node/configuration.rb +++ b/lib/puppet/node/configuration.rb @@ -226,9 +226,10 @@ class Puppet::Node::Configuration < Puppet::PGraph raise Puppet::DevError, "Could not find 'main' class; cannot generate configuration" end - # Retrive the bucket for the top-level scope and set the appropriate metadata. + # Retrieve the bucket for the top-level scope and set the appropriate metadata. unless result = buckets[main.to_s] - raise Puppet::DevError, "Did not evaluate top scope" + # This only happens when the configuration is entirely empty. + result = buckets[main.to_s] = main.to_trans end result.classes = classes |
