From fe985d9e4fd7d3e52c984c9e852f2052bf4a963c Mon Sep 17 00:00:00 2001 From: Xudong Guo Date: Mon, 18 Sep 2023 18:47:39 +0800 Subject: [PATCH] fix --- sky/clouds/service_catalog/data_fetchers/fetch_gcp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sky/clouds/service_catalog/data_fetchers/fetch_gcp.py b/sky/clouds/service_catalog/data_fetchers/fetch_gcp.py index e95e1c83a6e..a2c0bdb8270 100644 --- a/sky/clouds/service_catalog/data_fetchers/fetch_gcp.py +++ b/sky/clouds/service_catalog/data_fetchers/fetch_gcp.py @@ -532,8 +532,8 @@ def get_catalog_df(region_prefix: str) -> pd.DataFrame: args = parser.parse_args() SINGLE_THREADED = args.single_threaded - ZONES = set(args.zones) - EXCLUDED_REGIONS = set(args.exclude) + ZONES = set(args.zones) if args.zones else set() + EXCLUDED_REGIONS = set(args.exclude) if args.exclude else set() region_prefix_filter = '' if args.zones or args.all_regions else 'us-' catalog_df = get_catalog_df(region_prefix_filter)