summaryrefslogtreecommitdiff
path: root/cmd/podman/start.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-09-21 09:40:30 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-09-21 20:07:51 +0000
commit9e81f9daa4af9802088530a35a72814172430a36 (patch)
treee8ae1239d00c83f22a741662852e4dcad34fb2c4 /cmd/podman/start.go
parent785e9ea1fd985713db1aa8cc6bec07805faef7a2 (diff)
downloadpodman-9e81f9daa4af9802088530a35a72814172430a36.tar.gz
podman-9e81f9daa4af9802088530a35a72814172430a36.tar.bz2
podman-9e81f9daa4af9802088530a35a72814172430a36.zip
Refactor Wait() to not require a timeout
We added a timeout for convenience, but most invocations don't care about it. Refactor it into WaitWithTimeout() and add a Wait() that doesn't require a timeout and uses the default. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #1527 Approved by: mheon
Diffstat (limited to 'cmd/podman/start.go')
-rw-r--r--cmd/podman/start.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/start.go b/cmd/podman/start.go
index a80d0e1e8..cb65ec6d4 100644
--- a/cmd/podman/start.go
+++ b/cmd/podman/start.go
@@ -115,7 +115,7 @@ func startCmd(c *cli.Context) error {
return errors.Wrapf(err, "unable to start container %s", ctr.ID())
}
- if ecode, err := ctr.Wait(libpod.WaitTimeout); err != nil {
+ if ecode, err := ctr.Wait(); err != nil {
logrus.Errorf("unable to get exit code of container %s: %q", ctr.ID(), err)
} else {
exitCode = int(ecode)