summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-04-26 20:45:25 +1000
committerJames Turnbull <james@lovedthanlost.net>2009-04-26 20:45:25 +1000
commit51af2398ea96cd5abfb932ec12fceb5325b6605f (patch)
tree623865c577443a9e2670a0870e07624a9ef52319
parentdc0a9978df57b0ca730f9d90a132772474d34a5a (diff)
downloadpuppet-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.rb10
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