Skip to content

Commit

Permalink
chore: adding us-central1 region and zones to offline validation (#126)
Browse files Browse the repository at this point in the history
## Describe your changes
we are using the us-central1 too

## Checklist before requesting a review
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] If it is a core feature, I have added thorough tests.

Fixes #127
  • Loading branch information
racinmat authored Apr 2, 2024
2 parents 048ca40 + 0ea6bbc commit c5f906b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wanna/core/utils/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ def get_available_zones(project_id: str) -> List[str]:
return [zone.name for zone in response.items]
else:
return [
"us-central1-a",
"us-central1-b",
"us-central1-c",
"us-central1-f",
"us-east1-b",
"us-east1-c",
"us-east1-d",
Expand Down Expand Up @@ -224,7 +228,7 @@ def get_available_regions(project_id: str) -> List[str]:
response = RegionsClient(credentials=get_credentials()).list(project=project_id)
return [region.name for region in response.items]
else:
return ["europe-west1", "europe-west3", "europe-west4", "us-east1", "us-west1"]
return ["europe-west1", "europe-west3", "europe-west4", "us-east1", "us-west1", "us-central1"]


def get_region_from_zone(zone: str) -> str:
Expand Down

0 comments on commit c5f906b

Please sign in to comment.