summaryrefslogtreecommitdiff
path: root/pkg/bindings/images
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-29 17:04:22 +0200
committerGitHub <noreply@github.com>2020-04-29 17:04:22 +0200
commit27aa3a7837fa1c5379ff7ca1a9dcd6416b2ac685 (patch)
tree20d229709222de49e138b23e5790baf958c56338 /pkg/bindings/images
parentd1196d08d0c931885cf383ff4e568a855e8e4673 (diff)
parent5ee3af2d03b595bdff004ec179fc8a38e97cc5fe (diff)
downloadpodman-27aa3a7837fa1c5379ff7ca1a9dcd6416b2ac685.tar.gz
podman-27aa3a7837fa1c5379ff7ca1a9dcd6416b2ac685.tar.bz2
podman-27aa3a7837fa1c5379ff7ca1a9dcd6416b2ac685.zip
Merge pull request #6039 from vrothberg/enable-search-tests
Enable search tests
Diffstat (limited to 'pkg/bindings/images')
-rw-r--r--pkg/bindings/images/images.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkg/bindings/images/images.go b/pkg/bindings/images/images.go
index 63fe2556b..4d8ae6a6e 100644
--- a/pkg/bindings/images/images.go
+++ b/pkg/bindings/images/images.go
@@ -273,9 +273,10 @@ func Pull(ctx context.Context, rawImage string, options entities.ImagePullOption
params.Set("credentials", options.Credentials)
params.Set("overrideArch", options.OverrideArch)
params.Set("overrideOS", options.OverrideOS)
- 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))
}
params.Set("allTags", strconv.FormatBool(options.AllTags))
@@ -334,9 +335,10 @@ func Search(ctx context.Context, term string, opts entities.ImageSearchOptions)
params.Set("filters", f)
}
- if opts.TLSVerify != types.OptionalBoolUndefined {
- val := bool(opts.TLSVerify == types.OptionalBoolTrue)
- params.Set("tlsVerify", strconv.FormatBool(val))
+ if opts.SkipTLSVerify != types.OptionalBoolUndefined {
+ // Note: we have to verify if skipped is false.
+ verifyTLS := bool(opts.SkipTLSVerify == types.OptionalBoolFalse)
+ params.Set("tlsVerify", strconv.FormatBool(verifyTLS))
}
response, err := conn.DoRequest(nil, http.MethodGet, "/images/search", params)