|
|
@ -13,11 +13,11 @@ import ( |
|
|
|
func (m *Cluster) init(opts *ScanOptions) error { |
|
|
|
func (m *Cluster) init(opts *ScanOptions) error { |
|
|
|
for _, fn := range []func(*ScanOptions) error{ |
|
|
|
for _, fn := range []func(*ScanOptions) error{ |
|
|
|
m.initZones, |
|
|
|
m.initZones, |
|
|
|
|
|
|
|
m.initRegions, |
|
|
|
m.scanZoneIDs, |
|
|
|
m.scanZoneIDs, |
|
|
|
m.scanSort, |
|
|
|
m.scanSort, |
|
|
|
m.scanGateways, |
|
|
|
m.scanGateways, |
|
|
|
m.initCephMonitors, |
|
|
|
m.initCephMonitors, |
|
|
|
m.initRegions, |
|
|
|
|
|
|
|
} { |
|
|
|
} { |
|
|
|
if err := fn(opts); err != nil { |
|
|
|
if err := fn(opts); err != nil { |
|
|
|
return err |
|
|
|
return err |
|
|
|