Default task name to task type
This commit is contained in:
@@ -31,6 +31,8 @@ class TaskManager(object):
|
|||||||
:rtype: pillarsdk.Node
|
:rtype: pillarsdk.Node
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from pillar.web.jinja import format_undertitle
|
||||||
|
|
||||||
api = pillar_api()
|
api = pillar_api()
|
||||||
node_type = project.get_node_type(node_type_task['name'])
|
node_type = project.get_node_type(node_type_task['name'])
|
||||||
if not node_type:
|
if not node_type:
|
||||||
@@ -47,6 +49,7 @@ class TaskManager(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if task_type:
|
if task_type:
|
||||||
|
node_props['name'] = format_undertitle(task_type)
|
||||||
node_props['properties']['task_type'] = task_type
|
node_props['properties']['task_type'] = task_type
|
||||||
if parent:
|
if parent:
|
||||||
node_props['parent'] = parent
|
node_props['parent'] = parent
|
||||||
|
Reference in New Issue
Block a user