Enable edition of job actions

The ui is now able to add/remove/change order of actions in a job

Closes-bug: 1570305
Change-Id: I416000e6a45900a77069b6bad857d759f3b3bb61
This commit is contained in:
Memo Garcia 2016-04-14 11:52:25 +01:00
parent c7d2cc670a
commit 6ec918bc63
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ class UpdateActions(workflows.Workflow):
def handle(self, request, context):
try:
if context['job_id'] != '':
freezer_api.Job(request).update(context['job_id'], context)
freezer_api.Job(request).update_actions(context['job_id'],
context['actions'])
return shortcuts.redirect('horizon:disaster_recovery:jobs:index')
except Exception:
exceptions.handle(request)