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)
|
return "Error in tasklist: {0}".format(self.message)
|
||||||
|
|
||||||
|
|
||||||
class TaskException(Exception):
|
class TaskError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -8,5 +8,5 @@ class TriggerRollback(Task):
|
||||||
description = 'Triggering a rollback by throwing an exception'
|
description = 'Triggering a rollback by throwing an exception'
|
||||||
|
|
||||||
def run(self, info):
|
def run(self, info):
|
||||||
from common.exceptions import TaskException
|
from common.exceptions import TaskError
|
||||||
raise TaskException('Trigger rollback')
|
raise TaskError('Trigger rollback')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from base import Task
|
from base import Task
|
||||||
from common import phases
|
from common import phases
|
||||||
from common.exceptions import TaskException
|
from common.exceptions import TaskError
|
||||||
from connection import Connect
|
from connection import Connect
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
@ -79,5 +79,5 @@ class DeleteVolume(Task):
|
||||||
del info.volume
|
del info.volume
|
||||||
|
|
||||||
|
|
||||||
class VolumeError(TaskException):
|
class VolumeError(TaskError):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue