Small logic fix for podman pull with tls-verify
Ensure we don't force TLS verification when --tls-verify is set
to false.
Closes:
Approved by: rhatdan
@@ -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
}
