Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment parameter with an object inside of array keeps updating in the plan #858

Open
JCRL21 opened this issue Jan 24, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@JCRL21
Copy link

JCRL21 commented Jan 24, 2025

Describe the bug
The assignment parameter tagvalues has type Array which consist of an object. This setup worked fine before converting to EPaC and the deployment of the policy and assignment also works fine with EPaC, however the EPaC plan always wants to update this assignment afterwards.
There is some kind of mismatch between the assignment parameters in the portal and the parameter in my code, when I have an Array with an object inside. The pictures show my parameter setup in the code and the portal, which shouldn't update. I have tried swapping positions of the keys in the object.

Image

Image

To Reproduce
Steps to reproduce the behavior:
To reproduce you need an assignment which has a parameter of type Array with an object inside. Then after deploying this assignment once, the plan always wants to update the assignment afterwards.

Expected behavior
I expected the assignment to deploy once and not end in a infinite loop of updates in the plan.

EPAC Version
I use the lastest EPaC version each time i run the deploy pipeline.

@JCRL21 JCRL21 added the bug Something isn't working label Jan 24, 2025
@apybar apybar self-assigned this Jan 30, 2025
@apybar
Copy link
Collaborator

apybar commented Jan 30, 2025

@JCRL21 - I started experiencing this bug as well this week. Was going to open a ticket but thank you for doing so. I will figure out a path forward and try to get this resolved asap.

@anwather
Copy link
Collaborator

@apybar - it is probably something in Confirm-ObjectValueEqualityDeep function if you're looking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants