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