Skip to content

[Bug]: 3008.0rc4 jinja include with context #69192

@steverweber

Description

@steverweber

What happened?

{% set bla='blaaa' %}
{% include 'v2-tpl.sls' with context %}

then in v2-tpl.sls' try and use bla

test:
    file.managed:
        - name: /tmp/test
        - contents: '{{bla}}'

ERROR

... Jinja variable 'bla' is undefined

Type of salt install

other (please specify in bug details)

Major version

3007.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

debian-12

salt --versions-report output

3008.0rc4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken, incorrect, or confusing behaviorneeds-triage

    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