integration-cli: findContainerIP: replace dockerCmd
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
ba32bebd05
commit
eafb618594
1 changed files with 1 additions and 1 deletions
|
@ -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'")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue