Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 13d3a52

Browse files
authored
Merge pull request #222 from ulyssessouza/inspect
Fix linter
2 parents 2b4e2cb + 5b15220 commit 13d3a52

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

azure/convert/convert.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ func (s serviceConfigAciHelper) getAciContainer(volumesCache map[string]bool) (c
228228

229229
}
230230

231+
// ContainerGroupToContainer composes a Container from an ACI container definition
231232
func ContainerGroupToContainer(containerID string, cg containerinstance.ContainerGroup, cc containerinstance.Container) (containers.Container, error) {
232233
memLimits := -1.
233234
if cc.Resources != nil &&

cli/cmd/inspect.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ func runInspect(ctx context.Context, id string) error {
3737
}
3838

3939
b, err := json.MarshalIndent(container, "", " ")
40+
if err != nil {
41+
return err
42+
}
4043
containerString := string(b)
4144
fmt.Println(containerString)
4245

tests/e2e/e2e_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ func (s *E2eSuite) TestMockBackend() {
202202
})
203203

204204
It("can run inspect command on container", func() {
205-
golden.Assert(s.T(), s.NewDockerCommand("inspect", "id").ExecOrDie(),
206-
GoldenFile("inspect-id"))
205+
golden.Assert(s.T(), s.NewDockerCommand("inspect", "id").ExecOrDie(), "inspect-id")
207206
})
208207

209208
It("can run 'run' command", func() {

0 commit comments

Comments
 (0)