Skip to content

multipart template does not keep variables #9563

@aqueos

Description

@aqueos

Describe the Bug

when you create a template from xxx template files, a variable created in one part of it is not usable in the others

Expected Behavior

template('file1','file2','file3');

if file1 define variable="ok"

in file 3 you cannot use the variable.

Steps to Reproduce

Create a template

file1
<% myvar='ok' %>

file2
xwhaterver

file3
<%= myvar %>

template('file1','file2','file3') =>> fail

Environment

  • Version puppet 7
  • Platform deban12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions