Hello All,

I'm attempting to build puppetdb on opensuse it's failing with the
error "undefined method `downcase' for nil:NilClass". The Rakefile is
setting @plibdir based on "osfamily =
Facter.value(:osfamily).downcase" and osfamily is not a fact on
OpenSUSE/SUSE systems. How should I work around this?

Code block from Rakefile:

require 'facter'
osfamily = Facter.value(:osfamily).downcase
if osfamily.downcase =~ /debian/    and PE_BUILD == ''
  @plibdir = '/usr/lib/ruby/1.8'
elsif osfamily.downcase =~ /debian/ and PE_BUILD.downcase == "true"
  @plibdir = '/opt/puppet/lib/ruby/1.8'
elsif osfamily.downcase =~ /redhat/ and PE_BUILD == ''
  @plibdir = '/usr/lib/ruby/site_ruby/1.8'
elsif osfamily.downcase =~ /redhat/ and PE_BUILD.downcase == "true"
  @plibdir = '/opt/puppet/lib/ruby/site_ruby/1.8'
end


--
Later,
Darin

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to