diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-04-26 20:45:25 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-04-26 20:45:25 +1000 |
commit | 51af2398ea96cd5abfb932ec12fceb5325b6605f (patch) | |
tree | 623865c577443a9e2670a0870e07624a9ef52319 | |
parent | dc0a9978df57b0ca730f9d90a132772474d34a5a (diff) | |
download | puppet-51af2398ea96cd5abfb932ec12fceb5325b6605f.tar.gz puppet-51af2398ea96cd5abfb932ec12fceb5325b6605f.tar.xz puppet-51af2398ea96cd5abfb932ec12fceb5325b6605f.zip |
Fixed puppetqd require and tweaked stomp library error message
-rw-r--r-- | lib/puppet/application/puppetqd.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/puppet/application/puppetqd.rb b/lib/puppet/application/puppetqd.rb index 007bd89ec..9d2740a81 100644 --- a/lib/puppet/application/puppetqd.rb +++ b/lib/puppet/application/puppetqd.rb @@ -1,7 +1,7 @@ require 'puppet' require 'puppet/daemon' require 'puppet/application' -require 'puppet/node/catalog' +require 'puppet/resource/catalog' require 'puppet/indirector/catalog/queue' Puppet::Application.new(:puppetqd) do @@ -30,8 +30,8 @@ Puppet::Application.new(:puppetqd) do option("--verbose","-v") command(:main) do - Puppet::Node::Catalog::Queue.subscribe do |catalog| - # Once you have a Puppet::Node::Catalog instance, calling save() on it should suffice + Puppet::Resource::Catalog::Queue.subscribe do |catalog| + # Once you have a Puppet::Resource::Catalog instance, calling save() on it should suffice # to put it through to the database via its active_record indirector (which is determined # by the terminus_class = :active_record setting above) Puppet.notice "Processing queued catalog for %s" % catalog.name @@ -60,7 +60,7 @@ Puppet::Application.new(:puppetqd) do setup do unless Puppet.features.stomp? - raise ArgumentError, "Could not load 'stomp', which must be present for queueing to work" + raise ArgumentError, "Could not load the 'stomp' library, which must be present for queueing to work. You must install the required library." end setup_logs @@ -69,6 +69,6 @@ Puppet::Application.new(:puppetqd) do exit(Puppet.settings.print_configs ? 0 : 1) end - Puppet::Node::Catalog.terminus_class = :active_record + Puppet::Resource::Catalog.terminus_class = :active_record end end |