Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
comcalvi committed Sep 2, 2021
1 parent d6127d2 commit e9e15d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/aws-cdk/lib/cdk-toolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ export class CdkToolkit {
warning('⚠️ It should only be used for development - never use it for your production Stacks!');
}

const shouldDisableRollback = (options.rollback === undefined && options.hotswap == true) || options.rollback == false;

const stackOutputs: { [key: string]: any } = { };
const outputsFile = options.outputsFile;

Expand Down Expand Up @@ -203,7 +201,8 @@ export class CdkToolkit {
usePreviousParameters: options.usePreviousParameters,
progress: options.progress,
ci: options.ci,
rollback: shouldDisableRollback ? false : true,
//rollback: options.rollback === undefined && options.hotswap ? false : options.rollback,
rollback: options.rollback === undefined ? (options.hotswap ? false : true) : options.rollback,
hotswap: options.hotswap,
});

Expand Down

0 comments on commit e9e15d6

Please sign in to comment.