Merge "Allow deletion of erroneous checkpoints"

This commit is contained in:
Jenkins 2016-10-09 10:18:03 +00:00 committed by Gerrit Code Review
commit 77ae06ccab
1 changed files with 2 additions and 2 deletions

View File

@ -173,9 +173,9 @@ class ProtectionManager(manager.Manager):
raise exception.InvalidInput(
reason=_("Invalid checkpoint_id or provider_id"))
if checkpoint.status in [
if checkpoint.status not in [
constants.CHECKPOINT_STATUS_AVAILABLE,
constants.CHECKPOINT_STATUS_ERROR,
constants.CHECKPOINT_STATUS_PROTECTING
]:
raise exception.CheckpointNotBeDeleted(
checkpoint_id=checkpoint_id)