From eafb618594dcf824997dd761bf2cb6abd46043ab Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 27 Jul 2023 13:37:07 +0200 Subject: [PATCH] integration-cli: findContainerIP: replace dockerCmd Signed-off-by: Sebastiaan van Stijn --- integration-cli/docker_utils_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/docker_utils_test.go b/integration-cli/docker_utils_test.go index 834880a1f4..852cf1155e 100644 --- a/integration-cli/docker_utils_test.go +++ b/integration-cli/docker_utils_test.go @@ -53,7 +53,7 @@ func dockerCmdWithResult(args ...string) *icmd.Result { func findContainerIP(c *testing.T, id string, network string) string { c.Helper() - out, _ := dockerCmd(c, "inspect", fmt.Sprintf("--format='{{ .NetworkSettings.Networks.%s.IPAddress }}'", network), id) + out := cli.DockerCmd(c, "inspect", fmt.Sprintf("--format='{{ .NetworkSettings.Networks.%s.IPAddress }}'", network), id).Stdout() return strings.Trim(out, " \r\n'") }