mirror of https://github.com/docker/compose.git
Fix linter
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
2b4e2cb322
commit
5b1522095b
|
@ -228,6 +228,7 @@ func (s serviceConfigAciHelper) getAciContainer(volumesCache map[string]bool) (c
|
|||
|
||||
}
|
||||
|
||||
// ContainerGroupToContainer composes a Container from an ACI container definition
|
||||
func ContainerGroupToContainer(containerID string, cg containerinstance.ContainerGroup, cc containerinstance.Container) (containers.Container, error) {
|
||||
memLimits := -1.
|
||||
if cc.Resources != nil &&
|
||||
|
|
|
@ -37,6 +37,9 @@ func runInspect(ctx context.Context, id string) error {
|
|||
}
|
||||
|
||||
b, err := json.MarshalIndent(container, "", " ")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
containerString := string(b)
|
||||
fmt.Println(containerString)
|
||||
|
||||
|
|
|
@ -202,8 +202,7 @@ func (s *E2eSuite) TestMockBackend() {
|
|||
})
|
||||
|
||||
It("can run inspect command on container", func() {
|
||||
golden.Assert(s.T(), s.NewDockerCommand("inspect", "id").ExecOrDie(),
|
||||
GoldenFile("inspect-id"))
|
||||
golden.Assert(s.T(), s.NewDockerCommand("inspect", "id").ExecOrDie(), "inspect-id")
|
||||
})
|
||||
|
||||
It("can run 'run' command", func() {
|
||||
|
|
Loading…
Reference in New Issue