aboutsummaryrefslogtreecommitdiff
path: root/app/models/backends
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-01 20:43:49 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-01 20:43:49 +0100
commit9953ee2af581fc676a7ea7d308b691186aea6638 (patch)
treeffd5332c3ef440a1d5181425ed01eb38a6b46a9c /app/models/backends
parent1c842f372f9f46232551a62af2a8b6218054b432 (diff)
downloadgovuk-mini-environment-admin-9953ee2af581fc676a7ea7d308b691186aea6638.tar
govuk-mini-environment-admin-9953ee2af581fc676a7ea7d308b691186aea6638.tar.gz
Support selecting a data snapshot on the services page
Diffstat (limited to 'app/models/backends')
-rw-r--r--app/models/backends/terraform_libvirt.rb4
1 files changed, 4 insertions, 0 deletions
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