From 50ba62d68ef3a6a81e00581dd7d74f6387bd73fc Mon Sep 17 00:00:00 2001 From: Nick Lewis Date: Tue, 22 Mar 2011 14:29:52 -0700 Subject: maint: Make args to Catalog.select explicit No other args are used, so passing *args and shifting is unnecessary. --- lib/puppet/interface/catalog/select.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/puppet/interface') diff --git a/lib/puppet/interface/catalog/select.rb b/lib/puppet/interface/catalog/select.rb index 3f724d360..32d9b7c45 100644 --- a/lib/puppet/interface/catalog/select.rb +++ b/lib/puppet/interface/catalog/select.rb @@ -1,9 +1,7 @@ # Select and show a list of resources of a given type. Puppet::Interface.interface(:catalog) do action :select do - invoke do |*args| - host = args.shift - type = args.shift + invoke do |host,type| catalog = Puppet::Resource::Catalog.indirection.find(host) catalog.resources.reject { |res| res.type != type }.each { |res| puts res } -- cgit