From 23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31 Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Mon, 29 Mar 2010 17:10:40 -0700 Subject: REST: hide Request object This change to the REST branch restores some sanity by explicitly allowing a destination URL for indirector save() calls, removing a hack that I was using to accomplish this. --- lib/puppet/application/resource.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/puppet/application/resource.rb') diff --git a/lib/puppet/application/resource.rb b/lib/puppet/application/resource.rb index 0046fc1d8..ae4349850 100644 --- a/lib/puppet/application/resource.rb +++ b/lib/puppet/application/resource.rb @@ -83,8 +83,7 @@ Puppet::Application.new(:resource) do if params.empty? [ Puppet::Resource.find( key ) ] else - request = Puppet::Indirector::Request.new(:resource, :save, key) # Yuck. - [ Puppet::Resource.new( type, name, params ).save( request ) ] + [ Puppet::Resource.new( type, name, params ).save( key ) ] end else Puppet::Resource.search( key, {} ) -- cgit