Feature #31803
openAdd content host fact (subscription_facet_attributes) attributes in safemode jail
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1897911
Description of problem:
In the default condition (parameter `safemode_rendering` set to 'yes') we cannot use host subscription attributes (for example host.subscription_facet_attributes.service_level) in the report templates.
Reported error : There was an error rendering the Registered hosts clone template: undefined method '#subscription_facet_attributes' for Host::Managed::Jail (Host::Managed)
How reproducible:
Deterministic
Steps to Reproduce:
1. Clone report template 'Registered hosts' to 'Registered hosts clone'
2. Add attribute `host.subscription_facet_attributes.service_level` in the cloned template (Registered hosts clone).
3. Set safemode_rendering to NO
# hammer settings set --name "safemode_render" --value 0
Actual results:
On step 2, if we render the template, system will report error
There was an error rendering the Registered hosts clone template: undefined method '#subscription_facet_attributes' for Host::Managed::Jail (Host::Managed)
On step 3, after toggling safemode_render variable report is generated successfully
Expected results:
subscription_facet_attributes should be accessible within safemode
Additional info:
Updated by Dominik Matoulek almost 4 years ago
- Subject changed from Add content host fact (subscription_facet_attributes) attributes in safemode jail to Add content host fact (subscription_facet_attributes) attributes in safemode jail
- Triaged changed from No to Yes