krebs 3 zone-generation: for consistency, add newline at the end
This commit is contained in:
parent
5842130703
commit
709ebf6bbc
@ -105,8 +105,8 @@ let
|
|||||||
|
|
||||||
# Implements environment.etc."zones/<zone-name>"
|
# Implements environment.etc."zones/<zone-name>"
|
||||||
environment.etc = let
|
environment.etc = let
|
||||||
stripEmptyLines = s: concatStringsSep "\n"
|
stripEmptyLines = s: (concatStringsSep "\n"
|
||||||
(remove "\n" (remove "" (splitString "\n" s)));
|
(remove "\n" (remove "" (splitString "\n" s)))) + "\n";
|
||||||
all-zones = foldAttrs (sum: current: sum + "\n" +current ) ""
|
all-zones = foldAttrs (sum: current: sum + "\n" +current ) ""
|
||||||
([cfg.zone-head-config] ++ combined-hosts);
|
([cfg.zone-head-config] ++ combined-hosts);
|
||||||
combined-hosts = (mapAttrsToList (name: value: value.extraZones) cfg.hosts );
|
combined-hosts = (mapAttrsToList (name: value: value.extraZones) cfg.hosts );
|
||||||
|
Loading…
Reference in New Issue
Block a user