Merge pull request #193404 from evrim/master

nix-daemon module: fix mandatoryFeatures in nix.buildMachines
This commit is contained in:
Linus Heckemann 2022-09-29 15:48:05 +02:00 committed by GitHub
commit 3f7fa3fe68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -685,8 +685,10 @@ in
(if machine.sshKey != null then machine.sshKey else "-")
(toString machine.maxJobs)
(toString machine.speedFactor)
(concatStringsSep "," (machine.supportedFeatures ++ machine.mandatoryFeatures))
(concatStringsSep "," machine.mandatoryFeatures)
(let res = (machine.supportedFeatures ++ machine.mandatoryFeatures);
in if (res == []) then "-" else (concatStringsSep "," res))
(let res = machine.mandatoryFeatures;
in if (res == []) then "-" else (concatStringsSep "," machine.mandatoryFeatures))
]
++ optional (isNixAtLeast "2.4pre") (if machine.publicHostKey != null then machine.publicHostKey else "-")))
+ "\n"