aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-04-18 10:33:46 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-18 15:53:30 +0000
commit46b0e1bb277fec2df4dacc14e982252bf2c9049c (patch)
tree62cf8756a0b6f3033fb216eba1668d4c162008e6 /cmd/podman
parent95f272a0c55d2e33de1f69ce3c7f029c2c3c2c0d (diff)
downloadpodman-46b0e1bb277fec2df4dacc14e982252bf2c9049c.tar.gz
podman-46b0e1bb277fec2df4dacc14e982252bf2c9049c.tar.bz2
podman-46b0e1bb277fec2df4dacc14e982252bf2c9049c.zip
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
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/pull.go2
1 files changed, 1 insertions, 1 deletions
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
}