From 42dc5be78434f2efcf4ac63be6ad38b3aa7805dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radovan=20Dra=C5=BEn=C3=BD?= Date: Thu, 6 Jan 2022 16:00:10 +0100 Subject: [PATCH] Handle tlsverify correctly in podman_login (#365) --- plugins/modules/podman_login.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/modules/podman_login.py b/plugins/modules/podman_login.py index edd1a4d..bb509a8 100644 --- a/plugins/modules/podman_login.py +++ b/plugins/modules/podman_login.py @@ -103,7 +103,10 @@ def login(module, executable, registry, authfile, if certdir: command.extend(['--cert-dir', certdir]) if tlsverify is not None: - command.extend(['--tls-verify', tlsverify]) + if tlsverify: + command.append('--tls-verify') + else: + command.append('--tls-verify=False') rc, out, err = module.run_command(command) if rc != 0: if 'Error: Not logged into' not in err: