diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-01 20:43:49 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-01 20:43:49 +0100 |
commit | 9953ee2af581fc676a7ea7d308b691186aea6638 (patch) | |
tree | ffd5332c3ef440a1d5181425ed01eb38a6b46a9c /app/models/backends | |
parent | 1c842f372f9f46232551a62af2a8b6218054b432 (diff) | |
download | govuk-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.rb | 4 |
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 |