mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-14 05:22:08 +00:00
consider support of logout when user is not logged in
Co-authored-by: Bikouo Aubin <79859644+abikouo@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
50e47b520d
commit
8d2ddf29fc
@@ -218,6 +218,9 @@ def main():
|
|||||||
rc, out, err = module.run_helm_command(helm_cmd, data=password)
|
rc, out, err = module.run_helm_command(helm_cmd, data=password)
|
||||||
|
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
|
if state == "absent" and "Error: not logged in" in err:
|
||||||
|
changed = False
|
||||||
|
else:
|
||||||
module.fail_json(
|
module.fail_json(
|
||||||
msg="Failure when executing Helm command. Exited {0}.\nstdout: {1}\nstderr: {2}".format(
|
msg="Failure when executing Helm command. Exited {0}.\nstdout: {1}\nstderr: {2}".format(
|
||||||
rc, out, err
|
rc, out, err
|
||||||
|
|||||||
Reference in New Issue
Block a user