Project

General

Profile

Actions

Bug #35536

closed

Template input_resource macro & preview error

Added by Leos Stejskal over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by The Foreman Bot over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.5.0 added
Actions #3

Updated by Leos Stejskal over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF