Skip to content

Commit d4d31c9

Browse files
authored
[Develop] Fix retrieve_supported_regions to get the correct S3 Url (#6380)
* Fix retrieve_supported_regions to get the correct url
1 parent 4796b24 commit d4d31c9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ CHANGELOG
1313
**BUG FIXES**
1414
- Fix validator `EfaPlacementGroupValidator` so that it does not suggest to configure a Placement Group when Capacity Blocks are used.
1515
- Fix sporadic cluster creation failures with managed FSx for Lustre.
16+
- Fix `retrieve_supported_regions` so that it can get the correct S3 url.
1617

1718
3.10.1
1819
------

cli/src/pcluster/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def retrieve_supported_regions():
570570
try:
571571
url = "https://{region}-aws-parallelcluster.s3.{region}.{aws_domain}/supported-regions".format(
572572
region=region,
573-
aws_domain=get_partition(region),
573+
aws_domain=get_url_domain_suffix(region),
574574
)
575575
with urllib.request.urlopen(url) as f: # nosec B310 nosemgrep
576576
retrieve_supported_regions.cache = f.read().decode("utf-8").split("\n")

0 commit comments

Comments
 (0)