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

Fix podman logout tests for v4 (#526)

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sergey 2022-11-28 17:41:17 -05:00 committed by GitHub
parent 4f6ed89607
commit f8a70fe5b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -110,7 +110,7 @@ def logout(module, executable, registry, authfile, all_registries, ignore_docker
# The command will return successfully but not log out the user if the
# credentials were initially created using docker. Catch this behaviour:
if not ignore_docker_credentials:
module.fail_json(msg="Unable to log out of %s: %s" % (registry, out))
module.fail_json(msg="Unable to log out %s: %s" % (registry or '', out))
else:
changed = False
return changed, out, err

View file

@ -23,6 +23,7 @@
containers.podman.podman_logout:
executable: "{{ test_executable | default('podman') }}"
register: non_existing_registry
ignore_errors: true
- name: Check results
assert: