summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-29 16:20:44 +0200
committerGitHub <noreply@github.com>2020-04-29 16:20:44 +0200
commita76a99352a2145e1dd6b70db56d9cfa550633fbd (patch)
tree1ada16a3568689fc975b26ab716ec9299645a9a0 /pkg/bindings
parent6246165f168ab1d619bf4650590e32e035893143 (diff)
parent5c108f75ebdf4bf9214504f8b170ffabff1a38d4 (diff)
downloadpodman-a76a99352a2145e1dd6b70db56d9cfa550633fbd.tar.gz
podman-a76a99352a2145e1dd6b70db56d9cfa550633fbd.tar.bz2
podman-a76a99352a2145e1dd6b70db56d9cfa550633fbd.zip
Merge pull request #6037 from vrothberg/enable-push-tests
Enable push tests
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/images/images.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/bindings/images/images.go b/pkg/bindings/images/images.go
index 2305e0101..63fe2556b 100644
--- a/pkg/bindings/images/images.go
+++ b/pkg/bindings/images/images.go
@@ -310,9 +310,10 @@ 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 {
+ // Note: we have to verify if skipped is false.
+ verifyTLS := bool(options.SkipTLSVerify == types.OptionalBoolFalse)
+ params.Set("tlsVerify", strconv.FormatBool(verifyTLS))
}
path := fmt.Sprintf("/images/%s/push", source)