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 { if err := c.ociRuntime.PauseContainer(c); err != nil {
// TODO disabling to pass dockerpy tests. there is some sort of problem and perhaps // TODO when using docker-py there is some sort of race/incompatibility here
//a race going on here. return err
logrus.Error(err)
//return err
} }
logrus.Debugf("Paused container %s", c.ID()) logrus.Debugf("Paused container %s", c.ID())
@ -1215,10 +1213,8 @@ func (c *Container) unpause() error {
} }
if err := c.ociRuntime.UnpauseContainer(c); err != nil { if err := c.ociRuntime.UnpauseContainer(c); err != nil {
// TODO disabling to pass dockerpy tests. there is some sort of problem and perhaps // TODO when using docker-py there is some sort of race/incompatibility here
//a race going on here. return err
logrus.Error(err)
//return err
} }
logrus.Debugf("Unpaused container %s", c.ID()) logrus.Debugf("Unpaused container %s", c.ID())

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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