aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/jobs/govuk_guix/create_data_snapshot_job.rb2
1 files changed, 1 insertions, 1 deletions
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.