mirror of https://github.com/apache/cloudstack.git
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:
parent
5cada5ddf2
commit
20d8564ed0
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue