We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b63894 commit 07e5cbeCopy full SHA for 07e5cbe
1 file changed
engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/strategy/AncientSnapshotStrategy.java
@@ -536,6 +536,11 @@ public boolean deleteSnapshot(SnapshotInfo snapInfo) {
536
Long snapshotId = snapInfo.getId();
537
SnapshotObject snapshot = (SnapshotObject)snapInfo;
538
539
+ if (Snapshot.State.Error.equals(snapshot.getState())) {
540
+ _snapshotDao.remove(snapshotId);
541
+ return true;
542
+ }
543
+
544
if (!Snapshot.State.BackedUp.equals(snapshot.getState())) {
545
throw new InvalidParameterValueException("Can't delete snapshotshot " + snapshotId + " due to it is not in BackedUp Status");
546
}
0 commit comments