Bug 1383626

Summary: [RFE] Allow access to errata data from templates
Product: Red Hat Satellite Reporter: Sean O'Keeffe <sokeeffe>
Component: Content ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Daniel Lobato Garcia <dlobatog>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, bkearney, dlobatog, jcallaha
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sean O'Keeffe 2016-10-11 09:40:28 UTC
Description of problem:

In a template we would like to allow access to errata data, we could then use the "reboot_suggested" flag when a errata is being applied in a Job template to decided if we need to reboot.


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

How reproducible:
100%

Steps to Reproduce:
1. you cannot access errata data without safemode = false
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Bryan Kearney 2016-10-12 12:16:34 UTC
Upstream bug component is Content Management

Comment 2 Bryan Kearney 2016-10-13 14:17:58 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16857 has been resolved.

Comment 4 Daniel Lobato Garcia 2017-08-30 10:28:18 UTC
Verified.

Tested on Satellite 6.3 - Snap 3

Previewing a template with:

<%= errata(<Errata_ID>) -%>

throws no error, when Safemode is on.

Comment 5 Satellite Program 2018-02-21 16:51:07 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336