diff options
Diffstat (limited to 'ipsutils')
-rw-r--r-- | ipsutils/task.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipsutils/task.py b/ipsutils/task.py index 1d8faeb..321fec8 100644 --- a/ipsutils/task.py +++ b/ipsutils/task.py @@ -27,7 +27,10 @@ class TaskController(object): """ FILO execution of tasks """ for stack_entry in self.stack: - stack_entry.run() + status = stack_entry.run() + if not status: + exit(status) + class NamedTask(object): def __init__(self, name, func, *args): |