allow delete snapshot with ERROR state

(cherry picked from commit 81c07f1791)

Conflicts:

	engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/XenserverSnapshotStrategy.java
This commit is contained in:
Wei Zhou 2013-11-29 10:55:33 +01:00
parent 5cada5ddf2
commit 20d8564ed0
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ public class XenserverSnapshotStrategy extends SnapshotStrategyBase {
return true;
}
if (!Snapshot.State.BackedUp.equals(snapshotVO.getState())) {
if (!Snapshot.State.BackedUp.equals(snapshotVO.getState()) && !Snapshot.State.Error.equals(snapshotVO.getState())) {
throw new InvalidParameterValueException("Can't delete snapshotshot " + snapshotId
+ " due to it is in " + snapshotVO.getState() + " Status");
}