Skip to content

Commit

Permalink
do not fail if no updates are to be performed
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Jan 30, 2017
1 parent 1412cd9 commit 8bd8ded
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions senza/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,5 +428,11 @@ def update_stack_from_template(region: str, template: dict, dry_run: bool):
info('**DRY-RUN** {}'.format(template['NotificationARNs']))
else:
cf.update_stack(**template)
except ClientError as e:
act.fatal_error('ClientError: {}'.format(pformat(e.response)))
except ClientError as err:
response = err.response
error_info = response['Error']
error_message = error_info['Message']
if error_message == 'No updates are to be performed.':
act.ok('NO UPDATE')
else:
act.fatal_error('ClientError: {}'.format(pformat(response)))

0 comments on commit 8bd8ded

Please sign in to comment.