puppetlabs-stdlib/lib/facter
Jeff McCune e68677976b Prevent undefined method `split' for nil:NilClass with pe_foo_version facts
Without this patch the pe_major_version, pe_minor_version, and
pe_patch_version facts directly depend on the pe_version fact in a
manner that calls split directly on the return value.

This is a problem because Fact values are not always guaranteed to
return strings, or objects that respond to split.  This patch is a
defensive measure to ensure we're always calling the split method on a
string object.

If the Fact returns nil, this will be converted to an empty string
responding to split.
2012-10-25 10:00:45 -07:00
..
util (#13091) Fix LoadError exception with puppet apply 2012-03-13 16:44:21 -07:00
facter_dot_d.rb (#2157) Make facts_dot_d compatible with external facts 2012-07-10 15:24:33 -07:00
pe_version.rb Prevent undefined method `split' for nil:NilClass with pe_foo_version facts 2012-10-25 10:00:45 -07:00
puppet_vardir.rb (#13091) Fix LoadError exception with puppet apply 2012-03-13 16:44:21 -07:00
root_home.rb (#12357) Fix root_home fact on Windows 2012-03-05 15:22:06 -08:00