Skip to content

Commit

Permalink
feat: cloudformation.create_or_update now deleted changesets when the…
Browse files Browse the repository at this point in the history
…re are no changes
  • Loading branch information
eamonnfaherty committed Oct 21, 2021
1 parent 43bcee7 commit db0debc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions betterboto/cloudformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ def create_or_update(self, ShouldUseChangeSets=True, ShouldDeleteRollbackComplet
raise e
logger.info('Finished stack: {}'.format(stack_name))
else:
self.delete_change_set(
ChangeSetName=change_set_name,
StackName=stack_name
)
logger.info('Deleted change set: {}'.format(change_set_name))
logger.info('No changes to build for stack: {}'.format(stack_name))
logger.info('Finished stack: {}'.format(stack_name))
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="better-boto",
version="0.42.0",
version="0.43.0",
author="Eamonn Faherty",
author_email="python-packages@designandsolve.co.uk",
description="Helpers to make using boto3 more enjoyable",
Expand Down

0 comments on commit db0debc

Please sign in to comment.