diff options
author | Matthew Heon <mheon@redhat.com> | 2018-04-26 12:20:25 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-04-26 17:26:13 +0000 |
commit | 0ccfd7dc20c11bc2f9d646c98cc67fb399cd9013 (patch) | |
tree | 3e0e34a0254f9c11542463371f0510f0738b8fab /pkg | |
parent | 6ac8a24db4ab3e2bbc85feca2bee8cb1c868c7f6 (diff) | |
download | podman-0ccfd7dc20c11bc2f9d646c98cc67fb399cd9013.tar.gz podman-0ccfd7dc20c11bc2f9d646c98cc67fb399cd9013.tar.bz2 podman-0ccfd7dc20c11bc2f9d646c98cc67fb399cd9013.zip |
Retrieve IP addresses for container from DB
Instead of execing out to the host's IP, use the IP address we
got back from CNI to populate Inspect's IP address information.
Signed-off-by: Matthew Heon <mheon@redhat.com>
Closes: #680
Approved by: umohnani8
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/inspect/inspect.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/inspect/inspect.go b/pkg/inspect/inspect.go index 4a7c96aa1..b2dd1e1c0 100644 --- a/pkg/inspect/inspect.go +++ b/pkg/inspect/inspect.go @@ -199,7 +199,7 @@ type NetworkSettings struct { Gateway string `json:"Gateway"` GlobalIPv6Addresses []string `json:"GlobalIPv6Addresses"` GlobalIPv6PrefixLen int `json:"GlobalIPv6PrefixLen"` - IPAddress string `json:"IPAddress"` + IPAddress []string `json:"IPAddress"` IPPrefixLen int `json:"IPPrefixLen"` IPv6Gateway string `json:"IPv6Gateway"` MacAddress string `json:"MacAddress"` |