Skip to content

Commit 5f5ae6f

Browse files
committed
Fix formatting
1 parent 6d8dcb8 commit 5f5ae6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

infrastructure/parallelcluster-ui.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ Resources:
240240
import os
241241
import re
242242
import time
243+
from urllib.parse import urlparse
243244
244245
def get_partition(region):
245246
if region.startswith('us-gov-'):
@@ -320,7 +321,7 @@ Resources:
320321
result = f"{result}{version}={output['OutputValue']},"
321322

322323
parsed_url = urlparse(output['OutputValue']).hostname.split('.')[0]
323-
api_gateway_arns.append(f"arn:{get_partition(os.environ['AWS_REGION'])}:execute-api:{os.environ['AWS_REGION']}:{account_id}/{parsed_url}/*/*")
324+
api_gateway_arns.append(f"arn:{get_partition(os.environ['AWS_REGION'])}:execute-api:{os.environ['AWS_REGION']}:{account_id}:{parsed_url}/*/*")
324325
print(f"API arn: {parsed_url}")
325326

326327
print(f"Version={version}, ApiURL={output['OutputValue']}, ")

0 commit comments

Comments
 (0)