Skip to content

Commit

Permalink
Merge pull request guardian#4 from alexforever86/patch-1
Browse files Browse the repository at this point in the history
Fixed issue when region is ap-northeast-1
  • Loading branch information
akash1810 authored Mar 13, 2017
2 parents de0254c + a52f1fe commit f1dfe27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_stack_summary_attachment(stack_name):


def get_stack_region(stack_id):
regex = re.compile('arn:aws:cloudformation:(?P<region>[a-z]{2}-[a-z]{4}-[1-2]{1})')
regex = re.compile('arn:aws:cloudformation:(?P<region>[a-z]{2}-[a-z]{4,9}-[1-2]{1})')
return regex.match(stack_id).group('region')


Expand Down

0 comments on commit f1dfe27

Please sign in to comment.