summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-11-16 18:49:23 +0100
committerPaul Holzinger <pholzing@redhat.com>2021-11-16 19:19:04 +0100
commit97c6403a1bcde8501955fb1798740cf125597881 (patch)
tree2613ff322eb7bc9036f9b2609740af6fa90af4a4 /libpod/container_internal.go
parent197ebe8b5e6c10db786ad22692536e395c911b87 (diff)
downloadpodman-97c6403a1bcde8501955fb1798740cf125597881.tar.gz
podman-97c6403a1bcde8501955fb1798740cf125597881.tar.bz2
podman-97c6403a1bcde8501955fb1798740cf125597881.zip
rename libpod nettypes fields
Some field names are confusing. Change them so that they make more sense to the reader. Since these fields are only in the main branch we can safely rename them without worrying about backwards compatibility. Note we have to change the field names in netavark too. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 4bf15be86..871c6787a 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -1050,8 +1050,8 @@ func (c *Container) cniHosts() string {
var hosts string
for _, status := range c.getNetworkStatus() {
for _, netInt := range status.Interfaces {
- for _, netAddress := range netInt.Networks {
- hosts += fmt.Sprintf("%s\t%s %s\n", netAddress.Subnet.IP.String(), c.Hostname(), c.config.Name)
+ for _, netAddress := range netInt.Subnets {
+ hosts += fmt.Sprintf("%s\t%s %s\n", netAddress.IPNet.IP.String(), c.Hostname(), c.config.Name)
}
}
}