Skip to content

Commit

Permalink
Make code compatible with new version of PyYAML
Browse files Browse the repository at this point in the history
This was introduced by yaml/pyyaml#143
  • Loading branch information
enzbang committed May 9, 2019
1 parent 01fe679 commit d3755dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions e3/aws/cfn/__init__.py
Expand Up @@ -126,7 +126,8 @@ def __init__(self, stream,
explicit_start=None,
explicit_end=None,
version=None,
tags=None):
tags=None,
sort_keys=True):
"""Yaml dumper for cloud formation templates.
See yaml.Dumper documentation.
Expand All @@ -144,7 +145,8 @@ def __init__(self, stream,
explicit_start=explicit_start,
explicit_end=explicit_end,
version=version,
tags=tags)
tags=tags,
sort_keys=sort_keys)

self.add_representer(GetAtt, getatt_representer)
self.add_representer(Ref, ref_representer)
Expand Down

0 comments on commit d3755dc

Please sign in to comment.