Skip to content

Commit 3e38307

Browse files
Sean Smithsean-smith
authored andcommitted
Add partition() function
Signed-off-by: Sean Smith <[email protected]>
1 parent fba9724 commit 3e38307

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cli/cfncluster/config_sanity.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
import sys
2121
from botocore.exceptions import ClientError
2222

23+
def get_partition(region):
24+
if region == 'us-gov-west-1':
25+
return 'aws-us-gov'
26+
return 'aws'
27+
2328
def check_resource(region, cluster_name, aws_access_key_id, aws_secret_access_key, resource_type,resource_value):
2429

2530
# Loop over all supported resource checks

0 commit comments

Comments
 (0)