Skip to content

Commit

Permalink
Fixes #37065 - Call report_row with kwargs in Host Statuses report
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz committed Feb 13, 2024
1 parent e87de8d commit 3794fa5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/unattended/report_templates/host_-_statuses.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ model: ReportTemplate
<%- report_headers 'Name', 'Global' -%>
<%- machine_readable = input('Output style') == 'Machine-readable' -%>
<%- load_hosts(search: input('hosts'), includes: :host_statuses).each_record do |host| -%>
<%- report_row({
<%- row_hash = {
'Name': host.name,
'Global': machine_readable ? host.global_status : host.global_status_label
}.merge(machine_readable ? all_host_statuses_hash(host) : all_host_statuses_labels_hash(host))) -%>
}.merge(machine_readable ? all_host_statuses_hash(host) : all_host_statuses_labels_hash(host)) -%>
<%- report_row(**row_hash) -%>
<%- end -%>
<%= report_render -%>

0 comments on commit 3794fa5

Please sign in to comment.