1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #3250: Allow image revert to active snapshot (#2152)

(cherry picked from commit 9507ac628753401f66d70d6a5ad54c5d978e82ae)
This commit is contained in:
Pavel Czerný 2022-06-22 11:44:30 +02:00 committed by Ruben S. Montero
parent 8956b82d51
commit 77b8684a8e
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -1228,13 +1228,6 @@ int ImageManager::revert_snapshot(int iid, int sid, string& error)
return -1;
}
if (snaps.get_active_id() == sid)
{
error = "Snapshot is already the active one";
return -1;
}
/* ---------------------------------------------------------------------- */
/* Format message and send action to driver */
/* ---------------------------------------------------------------------- */