summaryrefslogtreecommitdiff
path: root/cmd/podman/images
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-04-29 14:33:00 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-04-29 14:33:00 +0200
commitd6d1e3860c2dec64471d3d9b408e5b90b3c21e4d (patch)
tree479bb65b9146f542ef273d3cd5ea624ba84e4a45 /cmd/podman/images
parent46b185942ce6297a3e59a048790649571676818b (diff)
downloadpodman-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 'cmd/podman/images')
-rw-r--r--cmd/podman/images/push.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/push.go b/cmd/podman/images/push.go
index d6bebb026..0b3502d61 100644
--- a/cmd/podman/images/push.go
+++ b/cmd/podman/images/push.go
@@ -113,7 +113,7 @@ func imagePush(cmd *cobra.Command, args []string) error {
// which is important to implement a sane way of dealing with defaults of
// boolean CLI flags.
if cmd.Flags().Changed("tls-verify") {
- pushOptions.TLSVerify = types.NewOptionalBool(pushOptions.TLSVerifyCLI)
+ pushOptions.SkipTLSVerify = types.NewOptionalBool(!pushOptions.TLSVerifyCLI)
}
if pushOptions.Authfile != "" {