Skip to content

Commit 8227647

Browse files
committed
fixed stack list bug
1 parent 4b805e4 commit 8227647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildstack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def checkstackname(region):
6969
try:
7070

7171
client = boto3.client('cloudformation',region_name = region)
72-
response = client.list_stacks()
72+
client.list_stacks(StackStatusFilter=['CREATE_COMPLETE'])
7373
for stacks in response['StackSummaries']:
7474
if (stacks['StackName'] == stackname):
7575
return True

0 commit comments

Comments
 (0)