Skip to content

Commit

Permalink
Merge pull request #442 from zalando-stups/no-updates-are-to-be-perfo…
Browse files Browse the repository at this point in the history
…rmed

do not fail if no updates are to be performed
  • Loading branch information
hjacobs authored Jan 30, 2017
2 parents 1412cd9 + 8bd8ded commit c369a90
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 c369a90

Please sign in to comment.