mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Rename TaskException to TaskError, use it when checking installed packages
This commit is contained in:
parent
442397fb2e
commit
ba461a815c
3 changed files with 5 additions and 5 deletions
|
@ -21,5 +21,5 @@ class TaskListError(Exception):
|
|||
return "Error in tasklist: {0}".format(self.message)
|
||||
|
||||
|
||||
class TaskException(Exception):
|
||||
class TaskError(Exception):
|
||||
pass
|
||||
|
|
|
@ -8,5 +8,5 @@ class TriggerRollback(Task):
|
|||
description = 'Triggering a rollback by throwing an exception'
|
||||
|
||||
def run(self, info):
|
||||
from common.exceptions import TaskException
|
||||
raise TaskException('Trigger rollback')
|
||||
from common.exceptions import TaskError
|
||||
raise TaskError('Trigger rollback')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from base import Task
|
||||
from common import phases
|
||||
from common.exceptions import TaskException
|
||||
from common.exceptions import TaskError
|
||||
from connection import Connect
|
||||
import time
|
||||
|
||||
|
@ -79,5 +79,5 @@ class DeleteVolume(Task):
|
|||
del info.volume
|
||||
|
||||
|
||||
class VolumeError(TaskException):
|
||||
class VolumeError(TaskError):
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue