Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a725b66d14 | |||
| 851274954e |
+1
-1
@@ -52,7 +52,7 @@ func populateDNSManager(mgr *dns.Manager, m *cluster.Cluster) error {
|
||||
|
||||
m.ForEachZone(func(z *cluster.Zone) bool {
|
||||
z.ForEachMachine(func(p *cluster.Machine) bool {
|
||||
err = mgr.AddHost(ctx, z.Name, p.ID, p.IsActive(), p.PublicAddresses...)
|
||||
err = mgr.AddHost(ctx, z.Name, p.ID, p.Active(), p.PublicAddresses...)
|
||||
return err != nil
|
||||
})
|
||||
|
||||
|
||||
@@ -44,8 +44,8 @@ func (m *Machine) FullName() string {
|
||||
return strings.Join(name, ".")
|
||||
}
|
||||
|
||||
// IsActive indicates the machine is to be included in regions' DNS entries
|
||||
func (m *Machine) IsActive() bool {
|
||||
// Active indicates the machine is to be included in regions' DNS entries
|
||||
func (m *Machine) Active() bool {
|
||||
return !m.Inactive
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ func (r *Region) ForEachMachine(fn func(*Machine) bool) {
|
||||
var term bool
|
||||
|
||||
z.ForEachMachine(func(p *Machine) bool {
|
||||
if p.IsActive() {
|
||||
if p.Active() {
|
||||
term = fn(p)
|
||||
}
|
||||
return term
|
||||
|
||||
Reference in New Issue
Block a user