diff options
author | Christopher Baines <mail@cbaines.net> | 2019-05-24 16:03:40 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2019-05-24 16:03:40 +0100 |
commit | 2b784c267f8688111ed3f745454e349500f426bc (patch) | |
tree | 71da95b6d23a4c62e6e12953d8f9af8a45f7481a /app/controllers/govuk_guix/revisions_controller.rb | |
parent | f8fabe092138d4513a139b9f9a0f4aaccacd81b0 (diff) | |
download | govuk-mini-environment-admin-ami-backend.tar govuk-mini-environment-admin-ami-backend.tar.gz |
WIPami-backend
Diffstat (limited to 'app/controllers/govuk_guix/revisions_controller.rb')
-rw-r--r-- | app/controllers/govuk_guix/revisions_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/govuk_guix/revisions_controller.rb b/app/controllers/govuk_guix/revisions_controller.rb index e4e1b52..ad37009 100644 --- a/app/controllers/govuk_guix/revisions_controller.rb +++ b/app/controllers/govuk_guix/revisions_controller.rb @@ -36,11 +36,12 @@ class GovukGuix::RevisionsController < ApplicationController revision = params.require('revision') # Attempt to check if this can be performed locally - if Guix.available_locally? + if Guix.available_locally? && false # TODO 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 |