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:
Matthew Heon 2018-04-18 10:33:46 -04:00 committed by Atomic Bot
parent 95f272a0c5
commit 46b0e1bb27
1 changed files with 1 additions and 1 deletions

View File

@ -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
}