systemd fix dependency overwrite

This commit is contained in:
CroneKorkN 2025-10-29 12:27:37 +01:00
parent e6312a2318
commit fb22a015e5
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -47,7 +47,7 @@ for name, unit in node.metadata.get('systemd/units').items():
for attribute in ['needs', 'needed_by', 'triggers', 'triggered_by']:
if attribute in unit:
dependencies[attribute] = unit.pop(attribute)
dependencies.setdefault(attribute, []).extend(unit.pop(attribute))
files[path] = {
'content': repo.libs.systemd.generate_unitfile(unit),