diff options
| author | Luke Kanies <luke@madstop.com> | 2007-11-18 23:25:04 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-11-18 23:25:04 -0600 |
| commit | 8838e9bb7cf5d0445a8ddbce0bd983551a191659 (patch) | |
| tree | 91a66e9d8a6b36e8ba20e485e36dd7dd770fd6f5 /lib/puppet/util | |
| parent | edc4b1deefee5e0e0088c0f291137bbfa9cb2434 (diff) | |
| parent | 61ef2893c57584ad3166241c6e412c1b4d014a4b (diff) | |
| download | puppet-8838e9bb7cf5d0445a8ddbce0bd983551a191659.tar.gz puppet-8838e9bb7cf5d0445a8ddbce0bd983551a191659.tar.xz puppet-8838e9bb7cf5d0445a8ddbce0bd983551a191659.zip | |
Merge commit 'davids-bugfixes/rest/fix-815-by-using-main-explicitly'
Diffstat (limited to 'lib/puppet/util')
| -rw-r--r-- | lib/puppet/util/metric.rb | 2 | ||||
| -rw-r--r-- | lib/puppet/util/settings.rb | 10 |
2 files changed, 3 insertions, 9 deletions
diff --git a/lib/puppet/util/metric.rb b/lib/puppet/util/metric.rb index d0719ff3b..ca23aa87f 100644 --- a/lib/puppet/util/metric.rb +++ b/lib/puppet/util/metric.rb @@ -21,7 +21,7 @@ class Puppet::Util::Metric end def create(start = nil) - Puppet.settings.use(:metrics) + Puppet.settings.use(:main, :metrics) start ||= Time.now.to_i - 5 diff --git a/lib/puppet/util/settings.rb b/lib/puppet/util/settings.rb index 0bd288ec2..1db396dc4 100644 --- a/lib/puppet/util/settings.rb +++ b/lib/puppet/util/settings.rb @@ -643,13 +643,6 @@ Generated on #{Time.now}. @used = [] end - runners = sections.collect { |s| - symbolize(s) - }.find_all { |s| - ! @used.include? s - } - return if runners.empty? - bucket = to_transportable(*sections) config = bucket.to_configuration @@ -661,7 +654,8 @@ Generated on #{Time.now}. end config.clear - runners.each { |s| @used << s } + sections.each { |s| @used << s } + @used.uniq end end |
