@@ -9,6 +9,15 @@ type Region struct {
|
||||
Regions []string `json:",omitempty" yaml:",omitempty"`
|
||||
}
|
||||
|
||||
// Zones ...
|
||||
func (r *Region) Zones() []string {
|
||||
out := make([]string, len(r.zones))
|
||||
for i := range r.zones {
|
||||
out[i] = r.zones[i].Name
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
func (m *Cluster) initRegions(_ *ScanOptions) error {
|
||||
regions := make(map[string][]*Zone)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user