@@ -225,7 +225,7 @@ export class TaskOperations {
225225
226226 try {
227227 await this . cloudFormationClient . updateStack ( request ) . promise ( )
228- await waitForStackUpdate ( this . cloudFormationClient , request . StackName )
228+ await waitForStackUpdate ( this . cloudFormationClient , request . StackName , this . taskParameters . timeoutInMins )
229229 } catch ( err ) {
230230 const e = < AWSError > err
231231 if ( isNoWorkToDoValidationError ( e . code , e . message ) ) {
@@ -365,7 +365,7 @@ export class TaskOperations {
365365 . promise ( )
366366
367367 if ( await testStackHasResources ( this . cloudFormationClient , stackName ) ) {
368- await waitForStackUpdate ( this . cloudFormationClient , stackName )
368+ await waitForStackUpdate ( this . cloudFormationClient , stackName , this . taskParameters . timeoutInMins )
369369 } else {
370370 await waitForStackCreation ( this . cloudFormationClient , stackName , this . taskParameters . timeoutInMins )
371371 }
@@ -533,8 +533,8 @@ export class TaskOperations {
533533 private async waitForChangeSetCreation ( changeSetName : string , stackName : string ) : Promise < boolean > {
534534 console . log ( tl . loc ( 'WaitingForChangeSetValidation' , changeSetName , stackName ) )
535535 try {
536- const parms : any = setWaiterParams ( stackName , this . taskParameters . timeoutInMins , changeSetName )
537- await this . cloudFormationClient . waitFor ( 'changeSetCreateComplete' , parms ) . promise ( )
536+ const params : any = setWaiterParams ( stackName , this . taskParameters . timeoutInMins , changeSetName )
537+ await this . cloudFormationClient . waitFor ( 'changeSetCreateComplete' , params ) . promise ( )
538538 console . log ( tl . loc ( 'ChangeSetValidated' ) )
539539 } catch ( err ) {
540540 // Inspect to see if the error was down to the service reporting (as an exception trapped
0 commit comments