Skip to content

Commit 0faf2ce

Browse files
rwaffenbastelfreak
andauthored
Update lib/facter/puppetdb_version.rb
Co-authored-by: Tim Meusel <[email protected]>
1 parent 1a5ee16 commit 0faf2ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/facter/puppetdb_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
require 'open3'
66

77
# check if os is debian/ubuntu and the package is not from puppetlabs
8-
if Facter.value(:osfamily) == 'Debian'
8+
if Facter.value(:os)('family') == 'Debian'
99
package_maintainer = Facter::Core::Execution.execute('apt-cache show puppetdb | grep "Maintainer:" | head -1')
1010
unless package_maintainer.include? 'Puppet Labs'
1111
output, status = Open3.capture2('dpkg-query --showformat=\'${Version}\' --show puppetdb')

0 commit comments

Comments
 (0)