aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/govuk_guix/revisions_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/govuk_guix/revisions_controller.rb')
-rw-r--r--app/controllers/govuk_guix/revisions_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/govuk_guix/revisions_controller.rb b/app/controllers/govuk_guix/revisions_controller.rb
index e4e1b52..1544bc1 100644
--- a/app/controllers/govuk_guix/revisions_controller.rb
+++ b/app/controllers/govuk_guix/revisions_controller.rb
@@ -40,7 +40,8 @@ class GovukGuix::RevisionsController < ApplicationController
options = {}
else
# Assume that the AWS backend is in use
- backend = Backends::TerraformAws.first
+ backend = Backends::TerraformAwsUsingAmi.first ||
+ Backends::TerraformAws.first
options = {
backend_type_and_id: backend.type_and_id