Skip to content

Commit

Permalink
Compare the Original CloudFormation Template Body (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
diranged authored Jan 10, 2019
1 parent 8557478 commit 31700cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion kingpin/actors/aws/cloudformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ def _get_stack_template(self, stack):
"""
try:
ret = yield self.api_call(self.cf3_conn.get_template,
StackName=stack)
StackName=stack,
TemplateStage='Original')
except ClientError as e:
raise CloudFormationError(e)

Expand Down
2 changes: 1 addition & 1 deletion kingpin/actors/aws/test/test_cloudformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def test_get_stack_template(self):
self.actor.cf3_conn.get_template.return_value = fake_stack_template
ret = yield self.actor._get_stack_template('test')
self.actor.cf3_conn.get_template.assert_has_calls(
[mock.call(StackName='test')])
[mock.call(StackName='test', TemplateStage='Original')])
self.assertEquals(ret, {'Fake': 'Stack'})

@testing.gen_test
Expand Down
2 changes: 1 addition & 1 deletion kingpin/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# Copyright 2018 Nextdoor.com, Inc


__version__ = '0.5.5'
__version__ = '0.5.6'

0 comments on commit 31700cb

Please sign in to comment.