Project

General

Profile

Actions

Bug #22390

open

"Failed to initialize: Dynflow::ExecutionPlan::Steps::Error - Failed rendering template" when using 'Variable' input

Added by Alex Fisher almost 7 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

In foreman 1.15.6 (on CentOS 7.4), I can't get this really simple job template to work.
The template tries to make use of the 'Variable' 'input type'.

<%#
name: freeipa
job_category: Miscellaneous
snippet: false
template_inputs:
- name: foo
  required: false
  input_type: variable
  variable_name: realm
  advanced: false
provider_type: SSH
kind: job_template
%>

echo 'test'
echo <%= input('foo') %>
echo 'done'

'realm' is a top level variable that's present in the ENC output, so should be available for use in the template?

Templates using other input types ('User Input' and 'Fact value') work fine.

The error message is

Failed to initialize: Dynflow::ExecutionPlan::Steps::Error - Failed rendering template: error during rendering: ERF47-9467 [TemplateInput::ValueNotReady]: Input 'foo' is not ready for rendering

No data to display

Actions

Also available in: Atom PDF