Browse Source

cluster: run initRegions() before scanZoneIDs()

Signed-off-by: Alejandro Mery <amery@jpi.io>
pull/49/head
Alejandro Mery 6 months ago
parent
commit
cede95e119
  1. 2
      pkg/cluster/cluster_import.go
  2. 2
      pkg/cluster/cluster_scan.go

2
pkg/cluster/cluster_import.go

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

2
pkg/cluster/cluster_scan.go

@ -25,9 +25,9 @@ func (m *Cluster) scan(opts *ScanOptions) error {
for _, fn := range []func(*ScanOptions) error{
m.scanDirectory,
m.scanMachines,
m.initRegions,
m.scanZoneIDs,
m.scanSort,
m.initRegions,
m.scanGateways,
m.scanCephMonitors,
} {

Loading…
Cancel
Save