diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-04-29 14:33:00 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-04-29 14:33:00 +0200 |
commit | d6d1e3860c2dec64471d3d9b408e5b90b3c21e4d (patch) | |
tree | 479bb65b9146f542ef273d3cd5ea624ba84e4a45 /pkg/bindings/images | |
parent | 46b185942ce6297a3e59a048790649571676818b (diff) | |
download | podman-d6d1e3860c2dec64471d3d9b408e5b90b3c21e4d.tar.gz podman-d6d1e3860c2dec64471d3d9b408e5b90b3c21e4d.tar.bz2 podman-d6d1e3860c2dec64471d3d9b408e5b90b3c21e4d.zip |
push: fix --tls-verify
Fix --tls-verify parsing and make the associated options reflect the
correct logic. Other commands are affected as well but will be fixed
later.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/bindings/images')
-rw-r--r-- | pkg/bindings/images/images.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/bindings/images/images.go b/pkg/bindings/images/images.go index 2305e0101..ff49ca914 100644 --- a/pkg/bindings/images/images.go +++ b/pkg/bindings/images/images.go @@ -310,9 +310,9 @@ func Push(ctx context.Context, source string, destination string, options entiti params := url.Values{} params.Set("credentials", options.Credentials) params.Set("destination", destination) - if options.TLSVerify != types.OptionalBoolUndefined { - val := bool(options.TLSVerify == types.OptionalBoolTrue) - params.Set("tlsVerify", strconv.FormatBool(val)) + if options.SkipTLSVerify != types.OptionalBoolUndefined { + val := bool(options.SkipTLSVerify == types.OptionalBoolTrue) + params.Set("tlsVerify", strconv.FormatBool(!val)) } path := fmt.Sprintf("/images/%s/push", source) |