We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aae629 commit 4a000a4Copy full SHA for 4a000a4
1 file changed
lib/facter/sudoversion.rb
@@ -8,7 +8,7 @@
8
setcode do
9
if Facter::Util::Resolution.which('sudo')
10
sudoversion = Facter::Util::Resolution.exec('sudo -V 2>&1')
11
- %r{^Sudo version ([\w.]+)}.match(sudoversion)[1]
+ %r{^(?:Sudo version|sudo-rs)\s+([\w.]+)}i.match(sudoversion)[1]
12
elsif Facter::Util::Resolution.which('rpm')
13
Facter::Util::Resolution.exec('rpm -q sudo --qf \'%{VERSION}\'')
14
elsif Facter::Util::Resolution.which('dpkg-query')
0 commit comments