File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
localstack-core/localstack/testing/scenario Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 28
28
"Delay" : 6 ,
29
29
"MaxAttempts" : 600 ,
30
30
} # total timeout ~1 hour (6 * 600 = 3_600 seconds)
31
- WAITER_CONFIG_LS = {"Delay" : 1 , "MaxAttempts" : 600 } # total timeout ~10 minutes
31
+ # total timeout ~10 minutes
32
+ WAITER_CONFIG_LS = {"Delay" : 1 , "MaxAttempts" : 600 }
32
33
CFN_MAX_TEMPLATE_SIZE = 51_200
33
34
34
35
@@ -320,7 +321,8 @@ def add_cdk_stack(
320
321
with open (template_path , "wt" ) as fd :
321
322
template_json = cdk .assertions .Template .from_stack (cdk_stack ).to_json ()
322
323
json .dump (template_json , fd , indent = 2 )
323
- fd .write ("\n " ) # add trailing newline for linter and Git compliance
324
+ # add trailing newline for linter and Git compliance
325
+ fd .write ("\n " )
324
326
325
327
self .cloudformation_stacks [cdk_stack .stack_name ] = {
326
328
"StackName" : cdk_stack .stack_name ,
@@ -405,8 +407,8 @@ def _create_bucket_if_not_exists(self, template_bucket_name: str):
405
407
try :
406
408
self .aws_client .s3 .head_bucket (Bucket = template_bucket_name )
407
409
except ClientError as exc :
408
- if exc .response ["Error" ]["Message " ] != "Not Found " :
409
- raise exc
410
+ if exc .response ["Error" ]["Code " ] != "404 " :
411
+ raise
410
412
create_s3_bucket (template_bucket_name , s3_client = self .aws_client .s3 )
411
413
412
414
def _synth (self ):
You can’t perform that action at this time.
0 commit comments