Default task name to task type
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user