Skip to content

Commit

Permalink
Confine kernel to run on Linux only - can cause problems on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerbahlke authored Jun 1, 2020
1 parent 2479c94 commit c5eaba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/facter/ssh.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Facter.add('ssh_version') do
confine kernel: ['Linux']
setcode do
if Facter::Util::Resolution.which('ssh')
Facter::Util::Resolution.exec('ssh -V 2>&1').match(/^[A-Za-z0-9._]+/)[0]
Expand Down

0 comments on commit c5eaba8

Please sign in to comment.