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