1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-04-28 11:58:48 +00:00

Pass errors as a string instead of list

This commit is contained in:
Sagi Shnaidman 2022-06-30 18:58:39 +03:00 committed by Sergey
parent 3fe1edb5b4
commit 542986cd8a

View file

@ -241,8 +241,8 @@ class PodmanKubeManagement:
changed = True
else:
changed = False
err = [
i for i in err.splitlines() if 'pod already exists' not in i]
err = "\n".join([
i for i in err.splitlines() if 'pod already exists' not in i])
elif rc != 0:
self.module.fail_json(msg="Output: %s\nError=%s" % (out, err))
else: