]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
Given that ssh -V prints the info we want on stderr, made it so we are 100% sure...
authorMicah Anderson <micah@riseup.net>
Fri, 27 Mar 2015 19:24:02 +0000 (15:24 -0400)
committerMicah Anderson <micah@riseup.net>
Fri, 27 Mar 2015 19:24:02 +0000 (15:24 -0400)
lib/facter/ssh_version.rb

index eb157ce137cb53cf4535f6b6a828bb4ba24901f2..51d8a00ff99a74c063306684539f0dcf96d54d52 100644 (file)
@@ -1,5 +1,5 @@
 Facter.add("ssh_version") do
   setcode do
-    ssh_version = Facter::Util::Resolution.exec('ssh -V 2>&1').chomp.split(' ')[0].split('_')[1]
+    ssh_version = Facter::Util::Resolution.exec('ssh -V 2>&1 1>/dev/null').chomp.split(' ')[0].split('_')[1]
   end
 end