From f74331a8e6d5b0ae9c2c73a36ba19730752269aa Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 1 Jun 2018 20:45:27 +0100 Subject: Pass the data-snapshot to govuk-system in the build job For the Terraform libvirt backend. --- app/models/backends/terraform_libvirt.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/backends/terraform_libvirt.rb b/app/models/backends/terraform_libvirt.rb index 4a37a3b..a6cde5e 100644 --- a/app/models/backends/terraform_libvirt.rb +++ b/app/models/backends/terraform_libvirt.rb @@ -63,8 +63,9 @@ class Backends::TerraformLibvirt < ApplicationRecord admin_environment_label: mini_environment.name, signon_instance_name: slug, use_error_pages: 'true', - origin_basic_auth: "#{slug}=#{slug}" - } + origin_basic_auth: "#{slug}=#{slug}", + data_snapshot: mini_environment.data_snapshot.try(:store_path) + }.compact ) end -- cgit v1.2.3