mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 13:41:36 +00:00
Fix network inspect for default networks.
- Keep old fields in NetworkSetting to respect the deprecation policy. Signed-off-by: David Calavera <david.calavera@gmail.com> (cherry picked from commit f301c5765a0d7f4b6866cedfdface6f87874ff53)
This commit is contained in:
committed by
Tibor Vass
parent
51e5073111
commit
2ec7433aa4
@@ -1592,3 +1592,11 @@ func waitInspect(name, expr, expected string, timeout time.Duration) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func getInspectBody(c *check.C, version, id string) []byte {
|
||||
endpoint := fmt.Sprintf("/%s/containers/%s/json", version, id)
|
||||
status, body, err := sockRequest("GET", endpoint, nil)
|
||||
c.Assert(err, check.IsNil)
|
||||
c.Assert(status, check.Equals, http.StatusOK)
|
||||
return body
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user