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 almost 5 years ago. Updated over 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

Also available in: Atom PDF