Skip to content

Commit 20d8564

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 5cada5d commit 20d8564

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
@@ -195,7 +195,7 @@ public boolean deleteSnapshot(Long snapshotId) {
195195
return true;
196196
}
197197

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

0 commit comments

Comments
 (0)