Skip to content

fix(opeartor): != not working as expected - #506

Merged
joshfried-aws merged 3 commits into
aws-cloudformation:mainfrom
joshfried-aws:main
May 8, 2024
Merged

joshfried-aws merged 3 commits into
aws-cloudformation:mainfrom
joshfried-aws:main

Conversation

@joshfried-aws

@joshfried-aws joshfried-aws commented May 7, 2024 •

Copy link
Copy Markdown
Contributor

Issue #, if available:
#478

Description of changes:
This PR addresses an issue where the guard evaluation engine was not properly handling successful != checks.

This was due to an inconsistency here where we compare sizes of lhs and rhs, and depending on which one is bigger, we use that to construct the diff (filtering for elements that are not in the other). The problem with this is when we checked to negate the clause here it was always constructed using the LHS. To fix this, we need to follow the same logic as in the previous link, except we need to invert the size check for lhs and rhs, and also ensure the operator is an Eq, and then we can construct the diff


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants