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

Set operations may cause reordering of lists #62

Closed
3 tasks
sk4zuzu opened this issue Jun 18, 2024 · 0 comments
Closed
3 tasks

Set operations may cause reordering of lists #62

sk4zuzu opened this issue Jun 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sk4zuzu
Copy link
Contributor

sk4zuzu commented Jun 18, 2024

Description
Ansible set operations (intersect, difference) seem to be reordering arrays since ansible-core>=2.16.0.

To Reproduce
Use ansible-core>=2.16.0 and deploy an environment with at least 2 VNETs, couple of times from scratch. Depending on your luck you won't get VNET IDs assigned consistently.

Expected behavior
Considering for example the vn dict -> VNET IDs should be assigned top to bottom, producing always the same result.

Details

  • Ansible version: >=2.16.0
  • Linux OS distro in your cluster: N/A
  • Version: N/A

Additional context
N/A

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
@sk4zuzu sk4zuzu added the bug Something isn't working label Jun 18, 2024
@sk4zuzu sk4zuzu self-assigned this Jun 18, 2024
sk4zuzu added a commit that referenced this issue Jun 18, 2024
It seems since ansible-core>=2.16.0, set operations like intersect
or difference may produce randomly reordered arrays.
rsmontero pushed a commit that referenced this issue Jun 19, 2024
It seems since ansible-core>=2.16.0, set operations like intersect or difference may produce randomly reordered arrays.
@sk4zuzu sk4zuzu closed this as completed Jun 19, 2024
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

1 participant