Issue #8974 has been updated by Daniele Sluijters.

Okay, so this is still happening and it's starting to get a bit annoying. This 
seems to have gotten fixed in 3.0 by commit 
[32cc8ff9ab5c236cb3a2e2495ea6fe710f4cd73b](https://github.com/puppetlabs/puppet/commit/32cc8ff9ab5c236cb3a2e2495ea6fe710f4cd73b)
 resulting in this version of 
[freebsd.rb](https://github.com/puppetlabs/puppet/blob/32cc8ff9ab5c236cb3a2e2495ea6fe710f4cd73b/lib/puppet/provider/service/freebsd.rb).

I've tried the fix in that commit on 2.7 with Ruby 1.9.3 and it works fine, now 
we're only left with it throwing a fit about this in `bsd.rb`:
    @@rcconf_dir = '/etc/rc.conf.d'

Could we at least get 
[32cc8ff9ab5c236cb3a2e2495ea6fe710f4cd73b](https://github.com/puppetlabs/puppet/commit/32cc8ff9ab5c236cb3a2e2495ea6fe710f4cd73b)
 into 2.7, and fix the issue with `bsd.rb` in the same way?

I can make the changes and send the pull request myself if someone is willing 
to merge this :-).
----------------------------------------
Bug #8974: class variable access from toplevel warnings in bsd service
https://projects.puppetlabs.com/issues/8974#change-80890

Author: Max Lincoln
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: Brett Bender
Category: ruby19
Target version: 
Affected Puppet version: 2.7.1
Keywords: 
Branch: https://github.com/puppetlabs/puppet/pull/444


Running puppet 2.7.1 on:
 
 * Rackspace
 * RHEL 5.6

I get these warnings:
<pre>
/usr/local/lib/ruby/gems/1.9.1/gems/puppet-2.7.1/lib/puppet/provider/service/freebsd.rb:8:
 warning: class variable access from toplevel
/usr/local/lib/ruby/gems/1.9.1/gems/puppet-2.7.1/lib/puppet/provider/service/freebsd.rb:9:
 warning: class variable access from toplevel
/usr/local/lib/ruby/gems/1.9.1/gems/puppet-2.7.1/lib/puppet/provider/service/freebsd.rb:10:
 warning: class variable access from toplevel
/usr/local/lib/ruby/gems/1.9.1/gems/puppet-2.7.1/lib/puppet/provider/service/bsd.rb:11:
 warning: class variable access from toplevel
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to