Sha256: e76d0e4f2b7dfdb274b8c012fe1ac80172acc23e25cd4d90407b8fbed1af0bc4

Contents?: true

Size: 1.3 KB

Versions: 7

Compression:

Stored size: 1.3 KB

Contents

<% if @task.is_a? ForemanTasks::Task::DynflowTask %>
  <div>
    <% failed_steps = @task.failed_steps %>
    <% if 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>
          <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>
        </div>
      <% end %>
    <% end %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman-tasks-0.6.6 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.6.5 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.6.4 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.6.3 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.6.2 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.6.1 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.6.0 app/views/foreman_tasks/tasks/_errors.html.erb