mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
13 lines
285 B
Python
13 lines
285 B
Python
from base import Task
|
|
from common import phases
|
|
|
|
|
|
class TriggerRollback(Task):
|
|
phase = phases.cleaning
|
|
|
|
description = 'Triggering a rollback by throwing an exception'
|
|
|
|
@classmethod
|
|
def run(cls, info):
|
|
from common.exceptions import TaskError
|
|
raise TaskError('Trigger rollback')
|