From f8b6a3ba007f0c0615ea969a64c98da441fd3cc5 Mon Sep 17 00:00:00 2001 From: arshadda Date: Mon, 18 Nov 2024 11:39:25 +0530 Subject: [PATCH] update regions and zones --- region.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/region.go b/region.go index d226892..5fe70c3 100644 --- a/region.go +++ b/region.go @@ -11,13 +11,11 @@ func GetRegion(zone string) (region string, err error) { case strings.HasPrefix(zone, "us-south"): region = "us-south" case strings.HasPrefix(zone, "dal"): - region = "dal" + region = "us-south" case strings.HasPrefix(zone, "sao"): region = "sao" case strings.HasPrefix(zone, "us-east"): region = "us-east" - case strings.HasPrefix(zone, "tor"): - region = "tor" case strings.HasPrefix(zone, "eu-de-"): region = "eu-de" case strings.HasPrefix(zone, "lon"): @@ -33,7 +31,7 @@ func GetRegion(zone string) (region string, err error) { case strings.HasPrefix(zone, "mad"): region = "mad" case strings.HasPrefix(zone, "wdc"): - region = "wdc" + region = "us-east" case strings.HasPrefix(zone, "tor"): region = "tor" default: @@ -100,11 +98,11 @@ var Regions = map[string]Region{ }, "mon": { Description: "Montreal, Canada", - VPCRegion: "", + VPCRegion: "ca-tor", COSRegion: "ca-tor", Zones: []string{"mon01"}, SysTypes: []string{"s922", "e980"}, - VPCZones: []string{}, + VPCZones: []string{"ca-tor-1", "ca-tor-2", "ca-tor-3"}, }, "osa": { Description: "Osaka, Japan",