-
Feature Request
-
Resolution: Unresolved
-
Minor
-
None
-
6.6.0
-
False
-
-
False
-
CLOSED
-
0
-
Undefined
-
Phoenix - Subscriptions
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)
Version-Release number of selected component (if applicable):
Satellite server 6.6.3
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:
- external trackers