Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Puppet
Commits
cb0bf4ca
Commit
cb0bf4ca
authored
Jun 12, 2021
by
James T. Lee
Browse files
Fix podman_version fact
parent
212087c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/facter/podman_version.rb
lib/facter/podman_version.rb
+1
-1
No files found.
lib/facter/podman_version.rb
View file @
cb0bf4ca
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment