From 418bc21e3fd893b0f1f5315f6a9d0f9a87ae2d01 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Fri, 9 Nov 2007 18:10:29 +0100 Subject: remove obsolete runners variable --- lib/puppet/util/settings.rb | 10 ++-------- 1 file 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 -- cgit