summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/settings.rb
diff options
context:
space:
mode:
authorDavid Schmitt <david@schmitt.edv-bus.at>2007-11-09 18:10:29 +0100
committerDavid Schmitt <david@schmitt.edv-bus.at>2007-11-09 18:10:29 +0100
commit418bc21e3fd893b0f1f5315f6a9d0f9a87ae2d01 (patch)
tree43bc8e94382693d77aac7c425bbeedf715889fba /lib/puppet/util/settings.rb
parent3f583dc133ce50ae34bfc151474c6d4196f803ca (diff)
downloadpuppet-418bc21e3fd893b0f1f5315f6a9d0f9a87ae2d01.tar.gz
puppet-418bc21e3fd893b0f1f5315f6a9d0f9a87ae2d01.tar.xz
puppet-418bc21e3fd893b0f1f5315f6a9d0f9a87ae2d01.zip
remove obsolete runners variable
Diffstat (limited to 'lib/puppet/util/settings.rb')
-rw-r--r--lib/puppet/util/settings.rb10
1 files changed, 2 insertions, 8 deletions
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