-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show Terraform Template stack stdout #9285
Conversation
2926d6b
to
569643d
Compare
5e664b0
to
7a65c3e
Compare
@@ -3,6 +3,10 @@ | |||
%ul.nav.nav-tabs{'role' => 'tablist'} | |||
= miq_tab_header("details") do | |||
= _("Details") | |||
- if @record.type == "ServiceTerraformTemplate" | |||
- stack = @record.try(:stack, "Provision") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is extremely close to - provision_job = @record.try(:job, "Provision")
below, I wonder if we could drop the "Is this an AnsiblePlaybook service or is it a terraform service" and instead say "does the provision job support stdout" generally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example #9292
|
||
- if @record.type == "ServiceTerraformTemplate" | ||
= miq_tab_content("output", 'default', :class => 'cm-tab') do | ||
- if stack | ||
= react('ServiceDetailStdout', { :taskid => stack.raw_stdout_via_worker(User.current_user&.userid, 'html')}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only question is if this could be more like the Ansible examples below versus having the miq_tab_header up above.
Is it possible to add specs covering this new code? Especially if we start refactoring this to be more generic it would be good to have existing specs in place. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think we need tests for this but going to merge as is for now
Backported to
|
Show Terraform Template stack stdout (cherry picked from commit d12d720)
This PR is dependant on ManageIQ/manageiq-providers-embedded_terraform#78
With this change, separate tab added to show standard output from the terraform cli run job.
Additional changes