What does it mean: "warning: class variable access from toplevel"?

asked 2014-05-02 03:14:41 -0500

Adam Ryczkowski gravatar image

updated 2014-05-02 03:15:34 -0500

I get several warnings like that if I run sudo puppet agent --test:

/var/lib/puppet/lib/puppet/provider/module/forge.rb:40: warning: class variable access from toplevel

What exactly these warnings mean from user's perspective? Can I safely ignore them?

edit retag flag offensive close merge delete

Comments

1

Is it this module? https://github.com/ryanycoleman/puppet_module_provider/blob/master/lib/puppet/provider/module/forge.rb#L40 Looks a little unclean with all the @@ syntax, and not entirely safe. Perhaps try and patch that up with some class level accessors?

ffrank gravatar imageffrank ( 2014-05-02 04:22:41 -0500 )edit

@ffrank You are right. After removing this module, the warning disappeared. Thank you!

Adam Ryczkowski gravatar imageAdam Ryczkowski ( 2014-05-03 11:26:45 -0500 )edit