mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 09:34:36 +00:00
nixos/keepalived: remove unnecessary parentheses
This commit is contained in:
parent
7dfc2a1369
commit
d1c73c2543
@ -84,13 +84,11 @@ let
|
|||||||
''
|
''
|
||||||
) vrrpInstances);
|
) vrrpInstances);
|
||||||
|
|
||||||
virtualIpLine = (ip:
|
virtualIpLine = ip: ip.addr
|
||||||
ip.addr
|
|
||||||
+ optionalString (notNullOrEmpty ip.brd) " brd ${ip.brd}"
|
+ optionalString (notNullOrEmpty ip.brd) " brd ${ip.brd}"
|
||||||
+ optionalString (notNullOrEmpty ip.dev) " dev ${ip.dev}"
|
+ optionalString (notNullOrEmpty ip.dev) " dev ${ip.dev}"
|
||||||
+ optionalString (notNullOrEmpty ip.scope) " scope ${ip.scope}"
|
+ optionalString (notNullOrEmpty ip.scope) " scope ${ip.scope}"
|
||||||
+ optionalString (notNullOrEmpty ip.label) " label ${ip.label}"
|
+ optionalString (notNullOrEmpty ip.label) " label ${ip.label}";
|
||||||
);
|
|
||||||
|
|
||||||
notNullOrEmpty = s: !(s == null || s == "");
|
notNullOrEmpty = s: !(s == null || s == "");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user