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
No known key found for this signature in database
GPG Key ID: 2660C5FDCEBE6F87

View File

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