Skip to content

Commit e80bd03

Browse files
committed
fixing yaml load issue
1 parent 48e1f44 commit e80bd03

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cloudformation_docs/sdk.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
from . import core
22
import json
3-
import yaml
4-
3+
from cfn_flip import yaml
54

65
def generate_from_json(template_content, name):
76
result = core.generate(json.loads(template_content), name)
87
return result
98

109

1110
def generate_from_yaml(template_content, name):
12-
result = core.generate(yaml.safe_load(template_content), name)
11+
result = core.generate(yaml.load_yaml(template_content), name)
1312
return result

setup.py

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

99
setuptools.setup(
1010
name="cloudformation-docs",
11-
version="0.3.0",
11+
version="0.3.1",
1212
author="Eamonn Faherty",
1313
author_email="packages@designandsolve.co.uk",
1414
description="Generate docs from cloudformation templates",

0 commit comments

Comments
 (0)