Project

General

Profile

Bug #35536

Template input_resource macro & preview error

Added by Leos Stejskal 3 months ago. Updated 8 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Preconditions
  • Create new job template
    echo '<%= input_resource('organization').title %>'
    
  • Add template input
    Input Type: user input
    Value type: resource
    Resource Type: organization
    
1. fixed issue
  • Try to preview the template
2. fixed issue
  • Run job invocation & verify that preview templates tab doesn't show any errors

Not fixed:

echo '<%= input_resource('organization') %>'

will still raise an "no implicit conversion of nil into String." error while previewing the template

Associated revisions

Revision 1b245d59 (diff)
Added by Leos Stejskal about 1 month ago

Fixes #35536 - Template input_resource macro & preview error (#9428)

History

#1 Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9428 added

#2 Updated by The Foreman Bot about 1 month ago

  • Fixed in Releases 3.5.0 added

#3 Updated by Leos Stejskal about 1 month ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Ewoud Kohl van Wijngaarden 8 days ago

  • Triaged changed from No to Yes

Also available in: Atom PDF