From: Aurelien Jarno Date: Mon, 1 Apr 2019 15:57:36 +0000 (+0200) Subject: Fix syslogversion facter for 2 digits versions X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=aa9fcc9836cbef66572250b6b0a99c3db9792748;p=mirror%2Fdsa-puppet.git Fix syslogversion facter for 2 digits versions --- 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