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

Version Path
foreman-tasks-0.15.11 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.10 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.9 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.8 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.14.6 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.7 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.16.0 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.6 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.5 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.4 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.3 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.2 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.1 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.15.0 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.14.5 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.14.4 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.14.3 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.14.2 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.14.1 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.11.3 app/views/foreman_tasks/tasks/_errors.html.erb