snapshot_revert for VM snapshot is always called with the first snapshot in Sunstone
|Assignee:||Abel Coronado||% Done:|
|Target version:||Release 5.4|
|Affected Versions:||Development, OpenNebula 5.2|
FirefoxESR 52.2.0 (64-bit)
How to reproduce:
1. Create two VM snapshots
2. Delete first VM snapshot (with ID 0)
3. Click "Revert" on the remaining snapshot (with ID 1)
You will receive error: "[one.vm.snapshotrevert] Could not revert VM 28 to snapshot 0, it does not exist."
Expected - snapshot with the correct name to be passed to vmm/snapshot_revert script
The following ugly patch against 5.2.x fixes the issue by reworking the passing of the snapshot ID to the popup warning.