Fix ignored --time argument to podman restart

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
Matthew Heon
2019-02-27 17:22:34 -05:00
parent 3ba2af90ae
commit 37f447d78e

View File

@ -73,7 +73,7 @@ func restartCmd(c *cliconfig.RestartValues) error {
defer runtime.Shutdown(false)
timeout := c.Timeout
useTimeout := c.Flag("timeout").Changed
useTimeout := c.Flag("timeout").Changed || c.Flag("time").Changed
// Handle --latest
if c.Latest {