From 46b0e1bb277fec2df4dacc14e982252bf2c9049c Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 18 Apr 2018 10:33:46 -0400 Subject: Small logic fix for podman pull with tls-verify Ensure we don't force TLS verification when --tls-verify is set to false. Signed-off-by: Matthew Heon Closes: #636 Approved by: rhatdan --- cmd/podman/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/podman') diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go index 43169635a..670d6d4fc 100644 --- a/cmd/podman/pull.go +++ b/cmd/podman/pull.go @@ -99,7 +99,7 @@ func pullCmd(c *cli.Context) error { DockerCertPath: c.String("cert-dir"), DockerInsecureSkipTLSVerify: !c.BoolT("tls-verify"), } - if !c.IsSet("tls-verify") { + if !c.IsSet("tls-verify") || !c.Bool("tls-verify") { forceSecure = false } -- cgit v1.2.3-54-g00ecf