Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not fail if no updates are to be performed #442

Merged
merged 1 commit into from
Jan 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)))