aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2015-03-27 15:24:02 -0400
committerMicah Anderson <micah@riseup.net>2015-03-27 15:24:02 -0400
commit52fd60c9f65025d32be275d98bcc2c88b3408de2 (patch)
tree2c52b35008cad1b4b40abba37b58482de1bb5ef4 /lib
parentd78749fd8f9ae2482b8e31c74698362c5c1f2341 (diff)
downloadpuppet-sshd-52fd60c9f65025d32be275d98bcc2c88b3408de2.tar.gz
puppet-sshd-52fd60c9f65025d32be275d98bcc2c88b3408de2.tar.bz2
Given that ssh -V prints the info we want on stderr, made it so we are 100% sure we are only parsing the expected string
Diffstat (limited to 'lib')
-rw-r--r--lib/facter/ssh_version.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/ssh_version.rb b/lib/facter/ssh_version.rb
index eb157ce..51d8a00 100644
--- a/lib/facter/ssh_version.rb
+++ b/lib/facter/ssh_version.rb
@@ -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