Skip to content

Commit c86f254

Browse files
committed
Show Terraform Template stack stdout
1 parent 71102ea commit c86f254

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/views/service/_svcs_show.html.haml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
%ul.nav.nav-tabs{'role' => 'tablist'}
44
= miq_tab_header("details") do
55
= _("Details")
6+
- if @record.type == "ServiceTerraformTemplate"
7+
- stack = @record.try(:stack, "Provision")
8+
= miq_tab_header("output") do
9+
= _("Output")
610
- if @record.type == "ServiceAnsiblePlaybook"
711
- provision_job = @record.try(:job, "Provision")
812
- retirement_job = @record.try(:job, "Retirement")
@@ -29,6 +33,12 @@
2933
= _('VMs')
3034
- if @view
3135
= render :partial => "layouts/gtl", :locals => {:view => @view, :no_flash_div => true}
36+
37+
- if @record.type == "ServiceTerraformTemplate"
38+
= miq_tab_content("output", 'default', :class => 'cm-tab') do
39+
- if stack
40+
= react('ServiceDetailStdout', { :taskid => stack.raw_stdout_via_worker(User.current_user&.userid, 'html')});
41+
3242
- if @record.type == "ServiceAnsibleTower" || @record.type == "ServiceAwx"
3343
= miq_tab_content("tower_job", 'default', :class => 'cm-tab') do
3444
= render :partial => "layouts/textual_groups_tabs", :locals => {:textual_group_list => textual_tower_job_group_list, :tab_id => "tower_job"}

0 commit comments

Comments
 (0)