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:
parent
4f6ed89607
commit
f8a70fe5b0
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
containers.podman.podman_logout:
|
||||
executable: "{{ test_executable | default('podman') }}"
|
||||
register: non_existing_registry
|
||||
ignore_errors: true
|
||||
|
||||
- name: Check results
|
||||
assert:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue