summaryrefslogtreecommitdiff
path: root/cmd/podman/run.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-01-17 09:26:50 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-17 14:49:23 +0000
commit1735598d12dfc6965c1881d537c6c0051a3637dd (patch)
tree2d0db64d05273747902b9a77789e9323bce2f7d1 /cmd/podman/run.go
parentd4e4878ec3e539e47da8c05227c8020d541a7df2 (diff)
downloadpodman-1735598d12dfc6965c1881d537c6c0051a3637dd.tar.gz
podman-1735598d12dfc6965c1881d537c6c0051a3637dd.tar.bz2
podman-1735598d12dfc6965c1881d537c6c0051a3637dd.zip
Add check for successful imageData call
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #234 Approved by: baude
Diffstat (limited to 'cmd/podman/run.go')
-rw-r--r--cmd/podman/run.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/run.go b/cmd/podman/run.go
index eecfe87b3..97f60cdbf 100644
--- a/cmd/podman/run.go
+++ b/cmd/podman/run.go
@@ -46,6 +46,10 @@ func runCmd(c *cli.Context) error {
}
imageName, _, data, err := imageData(c, runtime, c.Args()[0])
+ if err != nil {
+ return err
+ }
+
createConfig, err := parseCreateOpts(c, runtime, imageName, data)
if err != nil {
return err