+1

On Tue, Aug 17, 2010 at 4:40 PM, Jesse Wolfe <[email protected]> wrote:
> 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
>
> Signed-off-by: Jesse Wolfe <[email protected]>
> ---
>  lib/puppet/application/queue.rb |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/lib/puppet/application/queue.rb b/lib/puppet/application/queue.rb
> index 6df825d..6c90ca0 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
> --
> 1.7.0.4
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-dev?hl=en.
>
>



-- 
-----------------------------------------------------------
The power of accurate observation is
commonly called cynicism by those
who have not got it.  ~George Bernard Shaw
------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to