From f2f4b0bb7fadd5daf0f25ee11dee7b8caa8cd973 Mon Sep 17 00:00:00 2001 From: Phil Friderici Date: Tue, 21 Feb 2017 09:46:04 +0100 Subject: [PATCH] Fix facts redirection --- lib/facter/rsyslog_version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/rsyslog_version.rb b/lib/facter/rsyslog_version.rb index 746809c..b25d757 100644 --- a/lib/facter/rsyslog_version.rb +++ b/lib/facter/rsyslog_version.rb @@ -2,7 +2,7 @@ Facter.add("rsyslog_version") do setcode do - test_exists = "rsyslogd -v 2>&1 >/dev/null ; echo $?" + test_exists = "rsyslogd -v >/dev/null 2>&1 ; echo $?" if Facter::Util::Resolution.exec(test_exists) == '0' cmd = "rsyslogd -v | grep -Eo [0-9]+\.[0-9]+\.[0-9]+" response = Facter::Util::Resolution.exec(cmd)