1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Fix error with exitcommand for Podman v4 (#390)

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sergey 2022-03-11 12:13:36 +02:00 committed by GitHub
parent ecf4c1c52d
commit 81f20befb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -966,7 +966,7 @@ class PodmanContainerDiff:
return self._diff_update_and_compare('log_driver', before, after)
def diffparam_log_level(self):
excom = self.info['exitcommand']
excom = self.info.get('exitcommand', [])
if '--log-level' in excom:
before = excom[excom.index('--log-level') + 1].lower()
else: