Skip to content

Commit 5598ba0

Browse files
committed
allow delete snapshot with ERROR state
(cherry picked from commit 81c07f1) Conflicts: engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/XenserverSnapshotStrategy.java
1 parent c8f6a36 commit 5598ba0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/XenserverSnapshotStrategy.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public boolean deleteSnapshot(Long snapshotId) {
202202
return true;
203203
}
204204

205-
if (!Snapshot.State.BackedUp.equals(snapshotVO.getState())) {
205+
if (!Snapshot.State.BackedUp.equals(snapshotVO.getState()) && !Snapshot.State.Error.equals(snapshotVO.getState())) {
206206
throw new InvalidParameterValueException("Can't delete snapshotshot " + snapshotId
207207
+ " due to it is in " + snapshotVO.getState() + " Status");
208208
}

0 commit comments

Comments
 (0)