From aa9fcc9836cbef66572250b6b0a99c3db9792748 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Mon, 1 Apr 2019 17:57:36 +0200 Subject: [PATCH] Fix syslogversion facter for 2 digits versions --- modules/debian_org/lib/facter/software.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/debian_org/lib/facter/software.rb b/modules/debian_org/lib/facter/software.rb index d03fec120..4863e05d8 100644 --- a/modules/debian_org/lib/facter/software.rb +++ b/modules/debian_org/lib/facter/software.rb @@ -104,7 +104,7 @@ Facter.add("php5suhosin") do end Facter.add("syslogversion") do setcode do - %x{dpkg-query -W -f='${Version}\n' syslog-ng | cut -b1-3}.chomp + %x{dpkg-query -W -f='${Version}\n' syslog-ng | cut -d. -f1-2}.chomp end end Facter.add("unbound") do -- 2.20.1