Default task name to task type

This commit is contained in:
2016-10-04 14:28:21 +02:00
parent 785e35434d
commit fe70ee1ce1

View File

@@ -31,6 +31,8 @@ class TaskManager(object):
:rtype: pillarsdk.Node
"""
from pillar.web.jinja import format_undertitle
api = pillar_api()
node_type = project.get_node_type(node_type_task['name'])
if not node_type:
@@ -47,6 +49,7 @@ class TaskManager(object):
)
if task_type:
node_props['name'] = format_undertitle(task_type)
node_props['properties']['task_type'] = task_type
if parent:
node_props['parent'] = parent