-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Resolve #870] Bugfix in _call_sceptre_handler
Before this, the _call_sceptre_handler method makes multiple calls to os.getcwd() in determining paths to add and then later paths to remove. In the event that the sceptre_handler code then makes a call to os.chdir, the second call ends up removing the wrong path. This patch ensures that the paths removed are the same ones that are added.
- Loading branch information
1 parent
eb18118
commit 5be4d13
Showing
3 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from troposphere import Template | ||
|
||
from os import chdir | ||
|
||
def sceptre_handler(sceptre_user_data): | ||
t = Template() | ||
|
||
chdir("..") | ||
|
||
return t.to_json() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters