mirror of
https://github.com/containers/podman.git
synced 2025-12-11 01:11:30 +08:00
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 <matthew.heon@gmail.com> Closes: #636 Approved by: rhatdan
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user