aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-07-04 10:03:56 +0100
committerChristopher Baines <mail@cbaines.net>2018-07-04 10:03:56 +0100
commit5d50c7e7a8175c8ac3d1a650cc4e7ad2f4800acf (patch)
tree35cd1bff72543c3ac83a097e77b01994027d3994
parent954cf7fcdba099fd849dc9de57138313bf1d229d (diff)
downloadgovuk-mini-environment-admin-5d50c7e7a8175c8ac3d1a650cc4e7ad2f4800acf.tar
govuk-mini-environment-admin-5d50c7e7a8175c8ac3d1a650cc4e7ad2f4800acf.tar.gz
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.
-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.