Sha256: 2907d5b4ec5cfdc21a89736d309c089a2938c91741026682d6247cbdd43a62a2
Contents?: true
Size: 1.51 KB
Versions: 46
Compression:
Stored size: 1.51 KB
Contents
<% if @task.is_a? ForemanTasks::Task::DynflowTask %> <div> <% failed_steps = @task.failed_steps %> <% if @task.execution_plan.nil? %> <div class="alert alert-danger"> <%= _("Execution plan data not available ") %> </div> <% elsif failed_steps.empty? %> <div class="alert alert-success"> <%= _("No errors") %> </div> <% else %> <% failed_steps.each do |step| %> <div class="alert alert-danger"> <% action = step.action(@task.execution_plan) %> <span class="param-name"><%= _("Action") %>:</span> <span class="param-value"> <pre><%= action.class %></pre> </span> <span class="param-name"><%= _("Input") %>:</span> <span class="param-value"> <pre><%= action.input.pretty_inspect %></pre> </span> <span class="param-name"><%= _("Output") %>:</span> <span class="param-value"> <pre><%= action.output.pretty_inspect %></pre> </span> <% if step.error %> <span class="param-name"><%= _("Exception") %>:</span> <span class="param-value"> <pre><%= step.error.exception_class %>: <%= step.error.message %></pre> </span> <span class="param-name"><%= _("Backtrace") %>:</span> <span class="param-value"> <pre><%= step.error.backtrace.join("\n") %></pre> </span> <% end %> </div> <% end %> <% end %> </div> <% end %>
Version data entries
46 entries across 46 versions & 1 rubygems