Skip to content

Commit f8a70fe

Browse files
authored
Fix podman logout tests for v4 (#526)
Signed-off-by: Sagi Shnaidman <[email protected]> Signed-off-by: Sagi Shnaidman <[email protected]>
1 parent 4f6ed89 commit f8a70fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plugins/modules/podman_logout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def logout(module, executable, registry, authfile, all_registries, ignore_docker
110110
# The command will return successfully but not log out the user if the
111111
# credentials were initially created using docker. Catch this behaviour:
112112
if not ignore_docker_credentials:
113-
module.fail_json(msg="Unable to log out of %s: %s" % (registry, out))
113+
module.fail_json(msg="Unable to log out %s: %s" % (registry or '', out))
114114
else:
115115
changed = False
116116
return changed, out, err

tests/integration/targets/podman_logout/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
containers.podman.podman_logout:
2424
executable: "{{ test_executable | default('podman') }}"
2525
register: non_existing_registry
26+
ignore_errors: true
2627

2728
- name: Check results
2829
assert:

0 commit comments

Comments
 (0)