Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for PR followers and do not help prioritize the request
Description
A loop used to reorder a list of NICs to attach was running on a greater list of elements than those sorted.
This PR add a test case that reproduce the problem, and by the way it moves disk and NIC tests in separate files
References
Close #423
New or Affected Resource(s)
opennebula_virtual_machine
Checklist
[ ] I have created an issue and I have mentioned it in References
[ ] My code follows the style guidelines of this project (use go fmt)
[ ] My changes generate no new warnings or errors
[ ] I have updated the unit tests and they pass succesfuly
[ ] I have commented my code, particularly in hard-to-understand areas
Community Note
Description
A loop used to reorder a list of NICs to attach was running on a greater list of elements than those sorted. This PR add a test case that reproduce the problem, and by the way it moves disk and NIC tests in separate files
References
Close #423
New or Affected Resource(s)
Checklist
References
go fmt
)