From c3956b1974ce545446a443488497dfbc98dda1a8 Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 10 Jan 2020 09:47:19 -0600 Subject: address review comments before merge Signed-off-by: baude --- libpod/container_internal.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'libpod') diff --git a/libpod/container_internal.go b/libpod/container_internal.go index 1d118dcb0..46c83149a 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -1195,10 +1195,8 @@ func (c *Container) pause() error { } if err := c.ociRuntime.PauseContainer(c); err != nil { - // TODO disabling to pass dockerpy tests. there is some sort of problem and perhaps - //a race going on here. - logrus.Error(err) - //return err + // TODO when using docker-py there is some sort of race/incompatibility here + return err } logrus.Debugf("Paused container %s", c.ID()) @@ -1215,10 +1213,8 @@ func (c *Container) unpause() error { } if err := c.ociRuntime.UnpauseContainer(c); err != nil { - // TODO disabling to pass dockerpy tests. there is some sort of problem and perhaps - //a race going on here. - logrus.Error(err) - //return err + // TODO when using docker-py there is some sort of race/incompatibility here + return err } logrus.Debugf("Unpaused container %s", c.ID()) -- cgit v1.2.3-54-g00ecf