Fix podman client integration

Change-Id: I91c6ce37def2f81a42294cf4f512611ad23f39e6
This commit is contained in:
Federico Ressi 2021-06-29 12:54:05 +02:00
parent 799465ce8f
commit 76d1859695
1 changed files with 6 additions and 1 deletions

View File

@ -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: