From c60d8a0671b48ffdeda68895e0b7d97b252d66d9 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 29 Jan 2018 11:59:33 -0500 Subject: Add StopWithTimeout API function for containers Normal Stop should not need a timeout, and should use the default Add a function that does accept a timeout aside it Signed-off-by: Matthew Heon Closes: #272 Approved by: rhatdan --- cmd/podman/stop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/podman/stop.go') diff --git a/cmd/podman/stop.go b/cmd/podman/stop.go index d18a05bd4..9a0f28994 100644 --- a/cmd/podman/stop.go +++ b/cmd/podman/stop.go @@ -101,7 +101,7 @@ func stopCmd(c *cli.Context) error { } else { stopTimeout = ctr.StopTimeout() } - if err := ctr.Stop(stopTimeout); err != nil { + if err := ctr.StopWithTimeout(stopTimeout); err != nil { if lastError != nil { fmt.Fprintln(os.Stderr, lastError) } -- cgit v1.2.3-54-g00ecf