puppetlabs-stdlib/lib
Jeff McCune afd22ddc99 (#12357) Fix root_home fact on Windows
Without this patch the root_home fact fails on windows.  This patch
fixes the problem by only calling methods on the object returned by the
`getent passwd root` command if the object evaluates to true.

Because there is no root account on Windows the code block simply
returns `nil` which makes the Facter fact undefined on Windows
platforms.

The root cause of the failure is that we always expected the command to
succeed and return something useful, and it may not on all supported
platforms.
2012-03-05 15:22:06 -08:00
..
facter (#12357) Fix root_home fact on Windows 2012-03-05 15:22:06 -08:00
puppet (#12776) Added validate_slength function and rspec test 2012-02-22 18:12:34 +00:00