address review comments before merge

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude
2020-01-10 09:47:19 -06:00
parent 25b34972f4
commit c3956b1974
9 changed files with 16 additions and 19 deletions

View File

@ -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())

View File

@ -1,12 +1,12 @@
package handlers
import (
"github.com/containers/libpod/pkg/api/handlers/utils"
"net/http"
"strings"
"github.com/containers/libpod/libpod"
"github.com/containers/libpod/libpod/define"
"github.com/containers/libpod/pkg/api/handlers/utils"
"github.com/gorilla/mux"
"github.com/gorilla/schema"
"github.com/pkg/errors"

View File

@ -3,9 +3,9 @@ package handlers
import (
"encoding/json"
"fmt"
"github.com/containers/libpod/pkg/api/handlers/utils"
"net/http"
"github.com/containers/libpod/pkg/api/handlers/utils"
"github.com/pkg/errors"
)

View File

@ -3,7 +3,6 @@ package generic
import (
"encoding/json"
"fmt"
"github.com/containers/libpod/pkg/api/handlers/utils"
"net/http"
"strings"
@ -12,6 +11,7 @@ import (
"github.com/containers/libpod/libpod/define"
image2 "github.com/containers/libpod/libpod/image"
"github.com/containers/libpod/pkg/api/handlers"
"github.com/containers/libpod/pkg/api/handlers/utils"
"github.com/containers/libpod/pkg/namespaces"
createconfig "github.com/containers/libpod/pkg/spec"
"github.com/containers/storage"

View File

@ -2,8 +2,6 @@ package generic
import (
"fmt"
"github.com/containers/libpod/pkg/api/handlers"
"github.com/containers/libpod/pkg/api/handlers/utils"
"io/ioutil"
"net/http"
"os"
@ -14,6 +12,8 @@ import (
"github.com/containers/libpod/libpod"
"github.com/containers/libpod/libpod/config"
"github.com/containers/libpod/libpod/define"
"github.com/containers/libpod/pkg/api/handlers"
"github.com/containers/libpod/pkg/api/handlers/utils"
"github.com/containers/libpod/pkg/rootless"
"github.com/containers/libpod/pkg/sysinfo"
docker "github.com/docker/docker/api/types"

View File

@ -1,10 +1,10 @@
package generic
import (
"github.com/containers/libpod/pkg/api/handlers"
"github.com/containers/libpod/pkg/api/handlers/utils"
"net/http"
"github.com/containers/libpod/pkg/api/handlers"
"github.com/containers/libpod/pkg/api/handlers/utils"
docker "github.com/docker/docker/api/types"
)

View File

@ -2,14 +2,14 @@ package generic
import (
"fmt"
"github.com/containers/libpod/pkg/api/handlers"
"github.com/containers/libpod/pkg/api/handlers/utils"
"net/http"
goRuntime "runtime"
"time"
"github.com/containers/libpod/libpod"
"github.com/containers/libpod/libpod/define"
"github.com/containers/libpod/pkg/api/handlers"
"github.com/containers/libpod/pkg/api/handlers/utils"
docker "github.com/docker/docker/api/types"
"github.com/pkg/errors"
)

View File

@ -1,11 +1,12 @@
package handlers
import (
"net/http"
"github.com/containers/libpod/libpod"
"github.com/gorilla/mux"
"github.com/gorilla/schema"
"github.com/pkg/errors"
"net/http"
)
// Convenience routines to reduce boiler plate in handlers

View File

@ -2,9 +2,9 @@ package server
import (
"errors"
"github.com/containers/libpod/pkg/api/handlers/utils"
"net/http"
"github.com/containers/libpod/pkg/api/handlers/utils"
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"
)