Fix podman client integration
Change-Id: I91c6ce37def2f81a42294cf4f512611ad23f39e6
This commit is contained in:
parent
799465ce8f
commit
76d1859695
@ -54,7 +54,12 @@ def podman_client(obj=None):
|
||||
|
||||
|
||||
def podman_version_3():
|
||||
podman_ver = sh.execute('rpm -q podman').stdout.split('-')[1].split('.')[0]
|
||||
try:
|
||||
stdout = sh.execute('rpm -q podman').stdout
|
||||
except sh.ShellCommandFailed:
|
||||
return False
|
||||
|
||||
podman_ver = stdout.split('-')[1].split('.')[0]
|
||||
if int(podman_ver) >= 3:
|
||||
return True
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user