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 fd475ab commit 476dc58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions e3/aws/cfn/__init__.py
Original file line number Diff line number Diff line change
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 476dc58

Please sign in to comment.