mirror of
https://github.com/containers/podman
synced 2024-10-22 10:13:33 +00:00
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>
This commit is contained in:
parent
3a172c5999
commit
c6c6b23393
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue