SUSE-Enceladus / blue-horizon

web-based user interface to terraforming the public cloud
GNU General Public License v3.0
11 stars 8 forks source link

Fix the redirected view on an error during the tf plan #198

Closed arbulu89 closed 3 years ago

arbulu89 commented 3 years ago

Fix the error caused during the terraform plan if the authentication (or any terraform plan execution) fails. https://github.com/SUSE-Enceladus/blue-horizon/issues/195

It sends the error message to the flash and the output to the body.

I have created an additional _error view as it is simpler to overwrite if needed (that most probably will happen).

This is the result: image

This PR superseds: https://github.com/SUSE-Enceladus/blue-horizon/pull/141

codecov[bot] commented 3 years ago

Codecov Report

Merging #198 (1193cfe) into master (fd51121) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #198   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines          711       717    +6     
=========================================
+ Hits           711       717    +6     
Impacted Files Coverage Δ
app/controllers/plans_controller.rb 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fd51121...1193cfe. Read the comment docs.