Replies: 2 comments 1 reply
-
I am surprised that ever worked since that would put multiple states on the same line after the jinja is rendered like this: games: user.absent abrt: user.absent You can run with You just probably just need some newlines:
I like to put the empty argument list |
Beta Was this translation helpful? Give feedback.
-
I figured it out. Two file.absent stanzas at the beginning of the state file were missing trailing colons. Not sure why that was not caught earlier. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
We just moved our salt version up to 3006.7. For several years we've had code:
{% for user in ['games','abrt'] %} {{ usr }}: user.absent {% endfor %}
and that has worked without a problem. We are now testing on RHEL 9 and with that code, I am getting:
Rendering SLS 'my-branch:compliance/harden/init' failed: expected '<document start>', but found '<block mapping start>' in "<unicode string>", line 23, column 1: games: ^
Does anyone have an idea why this is happening and how to fix?
Beta Was this translation helpful? Give feedback.
All reactions