Skip to content

Commit

Permalink
Fix traceback on interactive provider when adding resources
Browse files Browse the repository at this point in the history
It seems it's possible for resources to omit the 'Replacement' key
instead of setting it to false. Handle that case instead of assuming the
key is always present.
  • Loading branch information
danielkza committed Aug 29, 2016
1 parent c76ac4b commit 4b2e8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stacker/providers/aws/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def output_summary(fqn, action, changeset, replacements_only=False):
changes = []
for change in changeset:
resource = change['ResourceChange']
replacement = resource['Replacement'] == 'True'
replacement = resource.get('Replacement') == 'True'
summary = '- %s %s (%s)' % (
resource['Action'],
resource['LogicalResourceId'],
Expand Down

0 comments on commit 4b2e8bf

Please sign in to comment.