Fill 'wf_name' task_db field

* Now wf_name is shown correctly in task CLI commands

Closes-bug: #1388013

Change-Id: I8a07c4f377e44153905c0b93da5dfc1fef518337
This commit is contained in:
Nikolay Mahotkin 2014-11-06 18:11:16 +03:00
parent 9ba091ae6e
commit 5d11899ad3
2 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,8 @@ class RunTask(EngineCommand):
'input': None,
'in_context': None,
'output': None,
'runtime_context': None
'runtime_context': None,
'wf_name': exec_db.wf_name
})
def _run_task(self):

View File

@ -93,6 +93,7 @@ class DefaultEngineTest(base.DbTestCase):
task_db = exec_db.tasks[0]
self.assertEqual('wb.wf1', task_db.wf_name)
self.assertEqual('task1', task_db.name)
self.assertEqual(states.RUNNING, task_db.state)
self.assertIsNotNone(task_db.spec)