Compare commits
11 Commits
4200db12cb
..
v0.5.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 1fe1cf940d | |||
| f10ea1dc22 | |||
| ac87757b06 | |||
| fe081a4297 | |||
| cea8362fe6 | |||
| b772ec0a3d | |||
| 77ad016e99 | |||
| bf4bfeb3fc | |||
| e3ab931eb1 | |||
| 05e04c758b | |||
| 94011a3a03 |
@@ -43,6 +43,8 @@ func loadGlobalConfField(cfg *GlobalConfig, field basic.Field) error {
|
|||||||
// revive:enable:cyclomatic
|
// revive:enable:cyclomatic
|
||||||
// revive:enable:cognitive-complexity
|
// revive:enable:cognitive-complexity
|
||||||
|
|
||||||
|
// TODO: refactor when asciigoat's ini parser learns to do reflection
|
||||||
|
|
||||||
switch field.Key {
|
switch field.Key {
|
||||||
case "fsid":
|
case "fsid":
|
||||||
if !core.IsZero(cfg.FSID) {
|
if !core.IsZero(cfg.FSID) {
|
||||||
|
|||||||
+12
-10
@@ -159,17 +159,19 @@ func (m *Zones) scanCephMonitors(_ *ScanOptions) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// store FSID
|
if cfg != nil {
|
||||||
m.CephFSID = cfg.Global.FSID
|
// store FSID
|
||||||
|
m.CephFSID = cfg.Global.FSID
|
||||||
|
|
||||||
// flag monitors based on config
|
// flag monitors based on config
|
||||||
todo := newCephScanTODO(cfg)
|
todo := newCephScanTODO(cfg)
|
||||||
m.ForEachMachine(func(p *Machine) bool {
|
m.ForEachMachine(func(p *Machine) bool {
|
||||||
p.CephMonitor = todo.checkMachine(p)
|
p.CephMonitor = todo.checkMachine(p)
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
if err := todo.Missing(); err != nil {
|
if err := todo.Missing(); err != nil {
|
||||||
return core.Wrap(err, "ceph")
|
return core.Wrap(err, "ceph")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure every zone has one
|
// make sure every zone has one
|
||||||
|
|||||||
Reference in New Issue
Block a user