nixos/networkd: lib.mapAttrsToList -> lib.attrNames
This commit is contained in:
@@ -347,7 +347,7 @@ in
|
||||
driverOpt:
|
||||
assertTrace (elem driverOpt (knownOptions ++ unknownOptions))
|
||||
"The bond.driverOption `${driverOpt}` cannot be mapped to the list of known networkd bond options. Please add it to the mapping above the assert or to `unknownOptions` should it not exist in networkd."
|
||||
) (mapAttrsToList (k: _: k) do);
|
||||
) (attrNames do);
|
||||
"";
|
||||
# get those driverOptions that have been set
|
||||
filterSystemdOptions = filterAttrs (sysDOpt: kOpts: any (kOpt: do ? ${kOpt}) kOpts.optNames);
|
||||
|
||||
Reference in New Issue
Block a user