Project

General

Profile

Actions

Feature #27926

closed

Host parameter should be accessible in Report Template without setting "Safemode rendering" to false

Added by Marek Hulán over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Reporting
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1746780

Description of problem:
Currently, the host parameter is accessible in report template only using host.info['parameters']['Parameter Name'] but needs to set "Safemode rendering" to false. We should able to access this when "Safemode rendering" is set to true

Here is an example template

<%- load_hosts().each_record do |host| -%>

<%- report_row({

'Name': host.name,
'LOB': host.info['parameters']['SomeParameter']
}) -%>

<%- end -%>

Version-Release number of selected component (if applicable): 6.5

How reproducible: Always

Actual results: Getting Error message --> Warning! There was an error rendering the parameterreport template: undefined method '#info' for Host::Managed::Jail (Host::Managed)

Expected results: parameter should be accessible when "Safemode rendering" to true

Actions #1

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Pražák
  • Pull request https://github.com/theforeman/foreman/pull/7084 added
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 1.24.0 added
Actions #3

Updated by Ondřej Pražák over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Tomer Brisker about 4 years ago

  • Category changed from Statistics to Reporting
Actions

Also available in: Atom PDF