Skip to content

Commit

Permalink
fix error in the format of Nodegroup tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmcnulty committed Feb 17, 2021
1 parent d767cd4 commit 1cb3a25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ Change Log

* TBD

`2.1.1`_ (2021-02-17)
---------------------

* Fix an error in the format of ``Nodegroup`` tags


`2.1.0`_ (2021-02-17)
---------------------

Expand Down Expand Up @@ -199,6 +205,7 @@ Backwards-incompatible changes:
* Initial public release


.. _2.1.1: https://aws-web-stacks.s3.amazonaws.com/index.html?prefix=2.1.1/
.. _2.1.0: https://aws-web-stacks.s3.amazonaws.com/index.html?prefix=2.1.0/
.. _2.0.0: https://aws-web-stacks.s3.amazonaws.com/index.html?prefix=2.0.0/
.. _1.4.0: https://aws-web-stacks.s3.amazonaws.com/index.html?prefix=1.4.0/
Expand Down
3 changes: 1 addition & 2 deletions stack/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def add_common_tags(template):
elif isinstance(resource.Tags, dict):
tags = common_tags.copy()
tags.update(**resource.Tags) # override with any tags from this resource.
resource.Tags = Tags(**tags) # and set the result on the resource again.

resource.Tags = tags # and set the result on the resource again.
elif isinstance(resource.Tags, list):
tags = tags_type_of_resource(resource)()
tags.tags = resource.Tags
Expand Down

0 comments on commit 1cb3a25

Please sign in to comment.