summaryrefslogtreecommitdiff
path: root/cmd/podman/pull.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-04-16 06:25:41 -0700
committerGitHub <noreply@github.com>2019-04-16 06:25:41 -0700
commit713839cf8393bdb96c739cb745e403cf2a3a1327 (patch)
tree5ae1609e0372f6cd4d1b87df93fa0358c47900eb /cmd/podman/pull.go
parentc1e2b583c82261639d6927c9b2a4f19d87a166a7 (diff)
parent6fb0a706af438778dd372d4b05b417fb30a45965 (diff)
downloadpodman-713839cf8393bdb96c739cb745e403cf2a3a1327.tar.gz
podman-713839cf8393bdb96c739cb745e403cf2a3a1327.tar.bz2
podman-713839cf8393bdb96c739cb745e403cf2a3a1327.zip
Merge pull request #2946 from baude/segs
Fix segfaults attribute to missing options
Diffstat (limited to 'cmd/podman/pull.go')
-rw-r--r--cmd/podman/pull.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go
index 7cc7b65b3..04eb5bd46 100644
--- a/cmd/podman/pull.go
+++ b/cmd/podman/pull.go
@@ -32,6 +32,7 @@ var (
RunE: func(cmd *cobra.Command, args []string) error {
pullCommand.InputArgs = args
pullCommand.GlobalFlags = MainGlobalOpts
+ pullCommand.Remote = remoteclient
return pullCmd(&pullCommand)
},
Example: `podman pull imageName
@@ -117,7 +118,7 @@ func pullCmd(c *cliconfig.PullValues) (retError error) {
DockerRegistryCreds: registryCreds,
DockerCertPath: c.CertDir,
}
- if c.Flag("tls-verify").Changed {
+ if c.IsSet("tls-verify") {
dockerRegistryOptions.DockerInsecureSkipTLSVerify = types.NewOptionalBool(!c.TlsVerify)
}