Skip to content

Commit

Permalink
replace : with = to avoid YAML error in some jinja use cases (#2672)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbordash2 authored Nov 27, 2024
1 parent a80f6fa commit 8ae5502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runway/cfngin/providers/aws/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ def get_stack_changes( # noqa: C901, PLR0912
if output_name not in self._outputs[stack.fqn]:
self._outputs[stack.fqn][
output_name
] = f"<inferred-change: {stack.fqn}.{output_name}={output_params['Value']}>"
] = f"<inferred-change = {stack.fqn}.{output_name}={output_params['Value']}>"

# when creating a changeset for a new stack, CFN creates a temporary
# stack with a status of REVIEW_IN_PROGRESS. this is only removed if
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/cfngin/providers/aws/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def test_get_stack_changes_update(self, mock_output_full_cs: MagicMock) -> None:
full_changeset=changes, params_diff=[], fqn=stack_name, answer="y"
)
expected_outputs = {
"FakeOutput": "<inferred-change: MockStack.FakeOutput={'Ref': 'FakeResource'}>"
"FakeOutput": "<inferred-change = MockStack.FakeOutput={'Ref': 'FakeResource'}>"
}
assert self.provider.get_outputs(stack_name) == expected_outputs
assert result == expected_outputs
Expand Down

0 comments on commit 8ae5502

Please sign in to comment.