Commit cb0bf4ca authored by James T. Lee's avatar James T. Lee
Browse files

Fix podman_version fact

parent 212087c5
...@@ -2,7 +2,7 @@ Facter.add('podman_version') do ...@@ -2,7 +2,7 @@ Facter.add('podman_version') do
confine kernel: 'Linux' confine kernel: 'Linux'
setcode do setcode do
if File.exist?('/usr/bin/podman') if File.exist?('/usr/bin/podman')
Regexp.last_match(1) if Facter::Core::Execution.execute('/usr/bin/podman --version') =~ %{podman version (\S+)} Regexp.last_match(1) if Facter::Core::Execution.execute('/usr/bin/podman --version') =~ %r{podman version (\S+)}
end end
end end
end end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment