Revision eae0a59a db/models.py

b/db/models.py
424 424
            raise VirtualMachine.InvalidActionError(action)
425 425

  
426 426
        # No actions to deleted and no actions beside destroy to suspended vms
427
        if self.deleted or (self.suspended and action not in ["START", "DESTROY"]):
427
        if self.deleted:
428 428
            raise VirtualMachine.InvalidActionError(action)
429 429

  
430 430
        self._action = action

Also available in: Unified diff