offload: Fix thinko.

* guix/scripts/offload.scm (choose-build-machine)[machine+slots]: Use
  'filter-map', not 'filter'.
This commit is contained in:
Ludovic Courtès 2014-03-08 12:22:49 +01:00
parent d652b85137
commit 7df3ade112
1 changed files with 4 additions and 4 deletions

View File

@ -396,7 +396,7 @@ connections allowed to MACHINE."
(with-file-lock (machine-choice-lock-file)
(define machines+slots
(map (lambda (machine)
(filter-map (lambda (machine)
(let ((slot (acquire-build-slot machine)))
(and slot (list machine slot))))
machines))