Bug 1374355 - Error while previewing the job template when no host is present
Summary: Error while previewing the job template when no host is present
Keywords:
Status: CLOSED DUPLICATE of bug 1358425
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
high
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-08 13:35 UTC by Kavita
Modified: 2016-11-22 12:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-22 12:57:31 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Kavita 2016-09-08 13:35:34 UTC
Description of problem:
Under Job templates,
If there is no any content-hosts present then on template preview it gives warning message with server side error.

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

How reproducible:
100%

Steps to Reproduce:
1. Go to Hosts -> Job Templates
2. Select any default template.
   For example - 'Install Errata - Katello SSH Default'
3. click on 'Preview' button

Actual results:

Warning! Problem with previewing the template: error during rendering: undefined method 'operatingsystem' for NilClass::Jail (NilClass). Note that you must save template input changes before you try to preview it.

Expected results:

Two ways:
1. It should display the preview of that template &
on failure there should be appropriate warning message needed.
Or
2. Other than 'text' format, 'Preview' button should be disabled when there is no host.


Additional info:

Comment 2 Adam Ruzicka 2016-11-22 12:57:31 UTC

*** This bug has been marked as a duplicate of bug 1358425 ***


Note You need to log in before you can comment on or make changes to this bug.