Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a check to defaults option in state if it exists #258

Closed
vskubriev opened this issue Jul 27, 2021 · 1 comment
Closed

Add a check to defaults option in state if it exists #258

vskubriev opened this issue Jul 27, 2021 · 1 comment
Labels
Type: Enhancement New feature or request

Comments

@vskubriev
Copy link

Is your feature request related to a problem? Please describe.

I'm always frustrated when case like this appears:

  file.managed:
    - source: {{ source_prefix }}/conf/named.conf.local
    - template: jinja
    - defaults:
      config: {{ config }}
      hostname: {{ srv }}
      cfg: {{ cfg }}
      prefix: {{ prefix }}

Options in - defaults array should be indented. Otherwise there is no default options in template and it is frustrating me.

Describe the solution you'd like
To be honest: I didn't know how to implement this case of check.

Describe alternatives you've considered
Manually check the code base.

@vskubriev vskubriev added the Type: Enhancement New feature or request label Jul 27, 2021
@jbouter
Copy link
Member

jbouter commented Jan 13, 2023

This is a duplicate of #246 and will therefore be tracked in there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants