systemd-networkd: Only generate [Match] if present

This commit is contained in:
Roman Volosatovs
2019-06-09 19:06:07 +02:00
parent 98e3b90b6c
commit 8e489018d3

View File

@@ -669,7 +669,7 @@ let
};
};
commonMatchText = def: ''
commonMatchText = def: optionalString (def.matchConfig != {}) ''
[Match]
${attrsToSection def.matchConfig}
'';