From 77b8684a8e0df3a930c281aea8e1f83a62b2a163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Czern=C3=BD?= Date: Wed, 22 Jun 2022 11:44:30 +0200 Subject: [PATCH] B #3250: Allow image revert to active snapshot (#2152) (cherry picked from commit 9507ac628753401f66d70d6a5ad54c5d978e82ae) --- src/image/ImageManagerActions.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/image/ImageManagerActions.cc b/src/image/ImageManagerActions.cc index 1181d5b15e..62f8a9baf7 100644 --- a/src/image/ImageManagerActions.cc +++ b/src/image/ImageManagerActions.cc @@ -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 */ /* ---------------------------------------------------------------------- */