Ask Your Question

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

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

Adam Ryczkowski gravatar image

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

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


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

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

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-02 04:22:41 -0600

ffrank gravatar image

Is it this module? Looks a little unclean with all the @@ syntax, and not entirely safe. Perhaps try and patch that up with some class level accessors?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-05-02 03:14:41 -0600

Seen: 981 times

Last updated: May 02 '14