zones: extend scan to ensure every zone has a ceph monitor
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -167,5 +167,10 @@ func (m *Zones) scanCephMonitors(_ *ScanOptions) error {
|
|||||||
return core.Wrap(err, "ceph")
|
return core.Wrap(err, "ceph")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make sure every zone has one
|
||||||
|
m.ForEachZone(func(z *Zone) bool {
|
||||||
|
_ = z.GetCephMonitors()
|
||||||
|
return false
|
||||||
|
})
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user