Sha256: 4966cf4d6153fa6ba4c635622fe7c25b4191653fab59ed0fa8ab0dc24e312bc5

Contents?: true

Size: 1.37 KB

Versions: 39

Compression:

Stored size: 1.37 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>
          <% 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

39 entries across 39 versions & 1 rubygems

Version Path
foreman-tasks-0.9.1 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.9.0 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.8.6 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.8.5 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.8.4 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.8.3 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.8.2 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.8.1 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.8.0 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.20 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.19 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.18 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.17 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.16 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.15 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.14 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.13 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.12 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.11 app/views/foreman_tasks/tasks/_errors.html.erb
foreman-tasks-0.7.10 app/views/foreman_tasks/tasks/_errors.html.erb