From efca35cbea836fac954fb655d76493f03b36e96f Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 8 Feb 2011 16:24:30 -0800 Subject: Finishing migration from puppet repo The whole system seems to work again, as long as you run it against 2.6.next. Signed-off-by: Luke Kanies --- lib/puppet/interface/catalog/select.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/puppet/interface/catalog') diff --git a/lib/puppet/interface/catalog/select.rb b/lib/puppet/interface/catalog/select.rb index 6311a4a74..4bb49315c 100644 --- a/lib/puppet/interface/catalog/select.rb +++ b/lib/puppet/interface/catalog/select.rb @@ -1,4 +1,8 @@ # Select and show a list of resources of a given type. Puppet::Interface::Catalog.action :select do |*args| - puts "Selecting #{args.inspect}" + host = args.shift + type = args.shift + catalog = Puppet::Resource::Catalog.indirection.find(host) + + catalog.resources.reject { |res| res.type != type }.each { |res| puts res } end -- cgit