From 9953ee2af581fc676a7ea7d308b691186aea6638 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 1 Jun 2018 20:43:49 +0100 Subject: Support selecting a data snapshot on the services page --- app/models/backends/terraform_libvirt.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models') diff --git a/app/models/backends/terraform_libvirt.rb b/app/models/backends/terraform_libvirt.rb index 4344801..4a37a3b 100644 --- a/app/models/backends/terraform_libvirt.rb +++ b/app/models/backends/terraform_libvirt.rb @@ -103,6 +103,10 @@ class Backends::TerraformLibvirt < ApplicationRecord end end + def available_data_snapshots + GovukGuix::DataSnapshot.where(backend: nil) + end + def terraform_state_id "backend/terraform_libvirt/#{id}" end -- cgit v1.2.3