From 4aa2dccd4e4ae0243dcdf55a8e98d9c1520a4694 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 12 Feb 2024 16:38:12 +0100 Subject: services: virtual-build-machine: Do not offload when service is stopped. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/services/virtualization.scm (check-vm-availability): Check the value of ‘live-service-running’. Change-Id: Iba858ea0fa417d9276e026b72b4b78791932482e --- gnu/services/virtualization.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm index 0fbd51de8d..69c8c84190 100644 --- a/gnu/services/virtualization.scm +++ b/gnu/services/virtualization.scm @@ -1500,7 +1500,8 @@ CONFIG, a , is up and running." (srfi srfi-34)) (guard (c ((service-not-found-error? c) #f)) - (->bool (current-service '#$service-name)))))) + (->bool (live-service-running + (current-service '#$service-name))))))) (define (build-vm-guix-extension config) (define vm-ssh-key -- cgit 1.4.1