bundlewrap/bundles/systemd/files/unitfile
mwiegand 572e29e723 wip
2021-06-11 13:30:57 +02:00

19 lines
484 B
Text

% for i, (segment, options) in enumerate(data.items()):
% if i > 0:
% endif
[${segment}]
% for option, value in options.items():
% if isinstance(value, dict):
% for k, v in value.items():
${option}=${k}=${v}
% endfor
% elif isinstance(value, (list, set, tuple)):
% for item in sorted(value):
${option}=${item}
% endfor
% elif isinstance(value, str):
${option}=${value}
% endif
% endfor
% endfor