Skip to content

Commit 3e156cd

Browse files
authored
Merge pull request #213 from k8s-infra-cherrypick-robot/cherry-pick-212-to-release-0.1
[release-0.1] missed regions added
2 parents 90dcd36 + 8a9ed54 commit 3e156cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/cloud/powervs.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,14 @@ func getRegion(zone string) (region string, err error) {
409409
region = "syd"
410410
case strings.HasPrefix(zone, "mon"):
411411
region = "mon"
412+
case strings.HasPrefix(zone, "osa"):
413+
region = "osa"
414+
case strings.HasPrefix(zone, "dal"):
415+
region = "dal"
416+
case strings.HasPrefix(zone, "sao"):
417+
region = "sao"
418+
case strings.HasPrefix(zone, "tok"):
419+
region = "tok"
412420
default:
413421
return "", fmt.Errorf("region not found for the zone, talk to the developer to add the support into the tool: %s", zone)
414422
}

0 commit comments

Comments
 (0)