Skip to content

Commit

Permalink
Fix !Condition references
Browse files Browse the repository at this point in the history
  • Loading branch information
scravy committed Mar 28, 2023
1 parent 09b5277 commit bf62c34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jinsi/__pkginfo__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.17.3"
version = "0.17.4"
2 changes: 1 addition & 1 deletion jinsi/yamlutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def seq_node(value) -> yaml.SequenceNode:
def aws_cloudformation_intrinsic_function(loader, node):
fn = f"Fn::{node.tag[1:]}"
if node.tag in ('!Ref', '!Condition'):
fn = 'Ref'
fn = node.tag[1:]
elif node.tag == '!GetAtt' and isinstance(node.value, str):
path = node.value.split(".", maxsplit=1)
node = yaml.SequenceNode(
Expand Down

0 comments on commit bf62c34

Please sign in to comment.