allow delete snapshot with ERROR state

This commit is contained in:
Wei Zhou 2013-11-28 10:48:07 +01:00
parent d473d5a36a
commit 81c07f1791
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,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");
}