diff options
| author | James Turnbull <james@lovedthanlost.net> | 2011-04-20 02:35:40 +1000 |
|---|---|---|
| committer | Josh Cooper <josh@puppetlabs.com> | 2011-04-19 15:30:59 -0700 |
| commit | c87d6c98ec1a315d435be38e7eb2258984c7d88c (patch) | |
| tree | d7e7255721198e391f916379912dc6c1bc9410ea /lib/puppet/indirector | |
| parent | 40a5bca736a31784d341aef389edfdde915938ec (diff) | |
| download | puppet-c87d6c98ec1a315d435be38e7eb2258984c7d88c.tar.gz puppet-c87d6c98ec1a315d435be38e7eb2258984c7d88c.tar.xz puppet-c87d6c98ec1a315d435be38e7eb2258984c7d88c.zip | |
Fixed #7166 - Replaced deprecated stomp "send" method with "publish"
The "send" method in the stomp gem has been deprecated since:
http://gitorious.org/stomp/mainline/commit/d542a976028cb4c5badcbb69e3383e746721e44c
It's been replaced with the "publish" method.
Also renamed the send_message method to publish_message more in
keeping with language used in queuing.
Diffstat (limited to 'lib/puppet/indirector')
| -rw-r--r-- | lib/puppet/indirector/queue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/indirector/queue.rb b/lib/puppet/indirector/queue.rb index fd089f431..85ffacacc 100644 --- a/lib/puppet/indirector/queue.rb +++ b/lib/puppet/indirector/queue.rb @@ -36,7 +36,7 @@ class Puppet::Indirector::Queue < Puppet::Indirector::Terminus def save(request) result = nil benchmark :info, "Queued #{indirection.name} for #{request.key}" do - result = client.send_message(queue, request.instance.render(:pson)) + result = client.publish_message(queue, request.instance.render(:pson)) end result rescue => detail |
