zones: introduce Machine.PublicAddresses()

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-21 22:16:39 +00:00
parent 5f924dcb00
commit 7e6c53c5f5
3 changed files with 33 additions and 0 deletions
+4
View File
@@ -43,6 +43,10 @@ func (z *Zone) scan() error {
Name: e.Name(),
}
if err := m.updatePublicAddresses(); err != nil {
return err
}
z.Machines = append(z.Machines, m)
}
}