Skip to content

Commit 7a2cd91

Browse files
Patch deployment of template body when template is yaml
1 parent 4c68d91 commit 7a2cd91

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.7-alpine
22

3-
RUN pip install stackuchin==1.5.3
3+
RUN pip install stackuchin==1.5.4
44

55
VOLUME /project
66

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
here = path.abspath(path.dirname(__file__))
66

7-
current_version = str('1.5.3')
7+
current_version = str('1.5.4')
88

99
# Get the long description from the README file
1010
with open(path.join(here, 'README.md'), encoding='utf-8') as f:

src/stackuchin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self):
4343

4444
# noinspection PyMethodMayBeStatic
4545
def version(self):
46-
print("1.5.3")
46+
print("1.5.4")
4747

4848
# noinspection PyMethodMayBeStatic
4949
def create(self):

src/stackuchin/utilities.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,9 @@ def upload(stack_file, stack_name, s3_bucket, s3_prefix,
172172
exit(1)
173173

174174
template_string = None
175-
loaded_as_json = False
176175
try:
177176
with open(stacks[stack_name]['Template'], 'r') as template_stream:
178177
template_string = json.load(template_stream)
179-
loaded_as_json = True
180178
except Exception as e:
181179
try:
182180
with open(stacks[stack_name]['Template'], 'r') as template_stream:
@@ -187,7 +185,7 @@ def upload(stack_file, stack_name, s3_bucket, s3_prefix,
187185

188186
output_object = {
189187
"type": "TemplateBody",
190-
"value": json.dumps(template_string) if loaded_as_json else template_string
188+
"value": json.dumps(template_string)
191189
}
192190

193191
template_key = None

0 commit comments

Comments
 (0)