summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application/run.rb
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-03-29 17:10:40 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31 (patch)
treef5a13141985b8956987b0aad3f84269be7902243 /lib/puppet/application/run.rb
parentd8e1b272ec321d5f86558672252de60983751a15 (diff)
downloadpuppet-23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31.tar.gz
puppet-23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31.tar.xz
puppet-23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31.zip
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.
Diffstat (limited to 'lib/puppet/application/run.rb')
-rw-r--r--lib/puppet/application/run.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/puppet/application/run.rb b/lib/puppet/application/run.rb
index 26ca362ff..46d1b191f 100644
--- a/lib/puppet/application/run.rb
+++ b/lib/puppet/application/run.rb
@@ -120,13 +120,12 @@ Puppet::Application.new(:run) do
print "Triggering %s\n" % host
begin
- request = Puppet::Indirector::Request.new(:run, :save, url) # Yuck.
run_options = {
:tags => @tags,
:background => ! options[:foreground],
:ignoreschedules => options[:ignoreschedules]
}
- run = Puppet::Run.new( run_options ).save( request )
+ run = Puppet::Run.new( run_options ).save( url )
result = run.status
rescue => detail
puts detail.backtrace if Puppet[:trace]