Merge pull request #62902 from rvolosatovs/fix/systemd-networkd-match

systemd-networkd: Only generate [Match] if present
This commit is contained in:
Franz Pletz 2019-06-09 23:08:09 +00:00 committed by GitHub
commit c66fe5a161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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