Revert backward incompatible change of path to template to multiplatform

It requires to use `work[root]` to handle multiplatformity.
In the case of customer request it needs to be reworked for proper multiplatformity.
This commit is contained in:
Petr Kalis 2023-06-27 15:50:08 +02:00
parent 8356bf98e5
commit 84fe7e7c7b
2 changed files with 2 additions and 5 deletions

View file

@ -13,7 +13,6 @@ about it's progress.
import os
import re
import platform
import collections
import copy
from abc import ABCMeta, abstractmethod
@ -764,9 +763,7 @@ class AbstractTemplateBuilder(object):
"with host '{}'"
).format(task_name, task_type, host_name))
current_platform = platform.system().lower()
# backward compatibility for single platform version
path = profile["path"].get(current_platform) or profile["path"]
path = profile["path"]
# switch to remove placeholders after they are used
keep_placeholder = profile.get("keep_placeholder")

View file

@ -26,7 +26,7 @@
"key": "path",
"label": "Path to template",
"type": "path",
"multiplatform": true,
"multiplatform": false,
"multipath": false
},
{