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:
parent
3fe1edb5b4
commit
542986cd8a
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue