This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report errors details in Failed Tab.
This allows easy indentification of what went wrong, instead of clicking a few times to pull up the details. Committer: Rick van der Zwet <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
- nodes = paginate_scope(local_assigns[:nodes]) | ||
|
||
- unless nodes.empty? | ||
%table.inspector | ||
%thead | ||
%tr | ||
%th{:scope => :col} Hostname | ||
%th{:scope => :col} Level | ||
%th{:scope => :col} Message | ||
%th{:scope => :col} Source | ||
%th{:scope => :col} File | ||
%th{:scope => :col} Line | ||
%th{:scope => :col} Time | ||
%tbody | ||
- nodes.each do |node| | ||
- if node.last_apply_report.logs.present? | ||
- node.last_apply_report.logs.each do |log| | ||
- if (log.level == 'err') | ||
%tr.puppet_log | ||
%td.node | ||
= link_to h(node.name), node | ||
%td.loglevel | ||
= log.level | ||
%td | ||
= log.message | ||
%td | ||
= log.source | ||
%td | ||
= log.file | ||
%td | ||
= log.line | ||
%td.nowrap | ||
= link_to h(node.last_apply_report.time), node.last_apply_report | ||
- else | ||
%p | ||
= describe_no_matches_for :nodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters