Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/facter/sudoversion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
setcode do
if Facter::Util::Resolution.which('sudo')
sudoversion = Facter::Util::Resolution.exec('sudo -V 2>&1')
%r{^Sudo version ([\w.]+)}.match(sudoversion)[1]
%r{^(?:Sudo version|sudo-rs)\s+([\w.]+)}i.match(sudoversion)[1]
Comment thread
saz marked this conversation as resolved.
Outdated
Comment thread
saz marked this conversation as resolved.
Outdated
elsif Facter::Util::Resolution.which('rpm')
Facter::Util::Resolution.exec('rpm -q sudo --qf \'%{VERSION}\'')
elsif Facter::Util::Resolution.which('dpkg-query')
Expand Down
Loading