mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
12 lines
260 B
Python
12 lines
260 B
Python
from base import Task
|
|
import phases
|
|
|
|
|
|
class TriggerRollback(Task):
|
|
phase = phases.cleaning
|
|
|
|
description = 'Triggering a rollback by throwing an exception'
|
|
|
|
def run(self, info):
|
|
from common.exceptions import TaskError
|
|
raise TaskError('Trigger rollback')
|