From 5d50c7e7a8175c8ac3d1a650cc4e7ad2f4800acf Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 4 Jul 2018 10:03:56 +0100 Subject: Don't try to use guix copy if Guix isn't available If this is the case, it should only be used on the remote host anyway. --- app/jobs/govuk_guix/create_data_snapshot_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/govuk_guix/create_data_snapshot_job.rb b/app/jobs/govuk_guix/create_data_snapshot_job.rb index cc90936..4768b24 100644 --- a/app/jobs/govuk_guix/create_data_snapshot_job.rb +++ b/app/jobs/govuk_guix/create_data_snapshot_job.rb @@ -49,7 +49,7 @@ class GovukGuix::CreateDataSnapshotJob < Que::Job 'Creating new data snapshot' end - if remote_host + if remote_host && Guix.available_locally? # TODO: This doesn't use the private key specified by the # backend, so it'll only work when the default SSH key has # access to the remote host. -- cgit v1.2.3