From 4c280796f71fd2153ae05dfec227fb4123152088 Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Tue, 17 Aug 2010 16:19:38 -0700 Subject: [#4555] puppet queue tries to call code it hasn't required puppet queue was trying to call .subscribe on Puppet::Resource::Catalog::Queue, but that object had not been loaded into the ruby interpreter. This bug was partially masked by ruby's confusing constant resolution, which was incorrectly returning the Puppet::Application::Queue class instead of throwing a NameError --- lib/puppet/application/queue.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/puppet/application/queue.rb') diff --git a/lib/puppet/application/queue.rb b/lib/puppet/application/queue.rb index 6df825dd1..6c90ca0a1 100644 --- a/lib/puppet/application/queue.rb +++ b/lib/puppet/application/queue.rb @@ -38,6 +38,7 @@ class Puppet::Application::Queue < Puppet::Application option("--verbose","-v") def main + require 'lib/puppet/indirector/catalog/queue' # provides Puppet::Indirector::Queue.subscribe Puppet.notice "Starting puppetqd #{Puppet.version}" Puppet::Resource::Catalog::Queue.subscribe do |catalog| # Once you have a Puppet::Resource::Catalog instance, calling save on it should suffice -- cgit