Skip to content

Jinja import cannot be referenced by any valid path from managed file deployed with salt-ssh #19564

@Bilge

Description

@Bilge

Given the following managed file:

/tmp:
  file.recurse:
    - source: salt://path/to/file
    - template: jinja

Containing any of the following import variations:

{% from 'macros/string.j2' import myFunction %}
{% from '/macros/string.j2' import myFunction %}
{% from 'salt://macros/string.j2' import myFunction %}

Running the following command will always throw TemplateNotFound:

salt-ssh \* state.highstate

Metadata

Metadata

Assignees

No one assigned

    Labels

    Corerelates to code central or existential to SaltFeaturenew functionality including changes to functionality and code refactors, etc.Salt-SSH

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions