"common: deduplicate AddCdrom call by appending path to ISOPaths"
that was squashed into:
"refactor: only add / remove minimul number of cdroms (#355)"
It explained that the order is not guaranteed and does not matter, however the documentation says:
If the "iso_url" is defined in addition to the "iso_paths", the
"iso_url" is added to the VM first. This keeps the "iso_url" first
in the boot order by default allowing the boot iso being defined by
the iso_url and the vmware tools iso added from the datastore.
This fixes regression introduced by the commit
that was squashed into:
It explained that the order is not guaranteed and does not matter, however the documentation says:
So fix the regression.
Fixes: https://github.com/hashicorp/packer-plugin-vsphere/issues/386