aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/backends/terraform_libvirt_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/backends/terraform_libvirt_controller.rb')
-rw-r--r--app/controllers/backends/terraform_libvirt_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/backends/terraform_libvirt_controller.rb b/app/controllers/backends/terraform_libvirt_controller.rb
index 1feae41..3a69b5b 100644
--- a/app/controllers/backends/terraform_libvirt_controller.rb
+++ b/app/controllers/backends/terraform_libvirt_controller.rb
@@ -71,6 +71,10 @@ class Backends::TerraformLibvirtController < ApplicationController
Backends::TerraformLibvirtJob.enqueue(@backend.id, :deploy_backend)
flash[:notice] = 'Deploying the backend'
+ when 'Refresh state'
+ Backends::TerraformLibvirtJob.enqueue(@backend.id, :refresh_backend_state)
+
+ flash[:notice] = 'Refreshing the backend state information'
else
flash[:error] = "Unknown action #{action}"
end