summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Bedel <albeu@free.fr>2020-11-17 20:23:02 +0100
committerAlban Bedel <albeu@free.fr>2020-11-17 20:33:33 +0100
commitc6c6b233934b3a1b5cb90e9b722814ff485a680c (patch)
tree99d02a57441a3b8224cbde93ab18133c427eb889
parent3a172c5999706e4493824c436bd7e2e8ea7b3d59 (diff)
downloadpodman-c6c6b233934b3a1b5cb90e9b722814ff485a680c.tar.gz
podman-c6c6b233934b3a1b5cb90e9b722814ff485a680c.tar.bz2
podman-c6c6b233934b3a1b5cb90e9b722814ff485a680c.zip
Client call to /play/kube incorrectly set tlsVerify
The API parameter `tlsVerify` should be the invert of the internal option `SkipTLSVerify`, fix this conversion. Signed-off-by: Alban Bedel <albeu@free.fr>
-rw-r--r--pkg/bindings/play/play.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/play/play.go b/pkg/bindings/play/play.go
index 8af3b8fb1..b6e8048de 100644
--- a/pkg/bindings/play/play.go
+++ b/pkg/bindings/play/play.go
@@ -30,7 +30,7 @@ func Kube(ctx context.Context, path string, options entities.PlayKubeOptions) (*
params.Set("network", options.Network)
params.Set("logDriver", options.LogDriver)
if options.SkipTLSVerify != types.OptionalBoolUndefined {
- params.Set("tlsVerify", strconv.FormatBool(options.SkipTLSVerify == types.OptionalBoolTrue))
+ params.Set("tlsVerify", strconv.FormatBool(options.SkipTLSVerify != types.OptionalBoolTrue))
}
// TODO: have a global system context we can pass around (1st argument)