Skip to content

Commit

Permalink
Confine autofs_version fact to Linux kernel.
Browse files Browse the repository at this point in the history
Fixes #68

#68
  • Loading branch information
JeremyGreen-TomTom committed Jun 16, 2017
1 parent 05028be commit b7eccde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/facter/autofs.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Facter.add(:autofs_version) do
confine kernel: 'Linux'
setcode do
if Facter::Util::Resolution.which('automount')
autofs_version_command = 'automount -V 2>&1'
Expand Down

0 comments on commit b7eccde

Please sign in to comment.