diff --git a/common/regions.py b/common/regions.py index b55d332..e869113 100644 --- a/common/regions.py +++ b/common/regions.py @@ -19,6 +19,15 @@ import argparse +REGION_LIST = ( + "us", + "asia-southeast1", + "europe", + "europe-west2", + "australia-southeast1", + "me-west1", +) + def add_argument_region(parser: argparse.ArgumentParser): """Adds a shared command-line argument to all the sample modules.""" @@ -28,13 +37,7 @@ def add_argument_region(parser: argparse.ArgumentParser): type=str, required=False, default="us", - choices=( - "asia-southeast1", - "europe", - "us", - "europe-west2", - "australia-southeast1", - ), + choices=REGION_LIST, help="the region where the customer is located (default: us)", )