You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I am writing Salt code using the Python renderer. The documentation about how to write usable code with this renderer, is very vague and is missing a lot of pointers. And that is very disappointing.
Suggested Fix
What did you expect to see in the documentation that is missing or needs updating?
Some missed points:
How to check results of states, the pythonic way. Ex: How to check if result is False?
Possibilities for storing values from states. With examples.
A example of how to use an Salt module (I picked my brain many hours on this)
Should it be like this or are there better ways? config['check_pass_secured_url'] = { 'module.run': [ { 'http.query': { 'url': url, 'username': 'testing'), 'password': 'testing') }, } ], }
Those points are not missed. as those are not functionality that is possible with any render engine.
including the python one. the render engines all run before the state tree is run. and are finished before the state tree is run. the python renderer is not a magic window into the state system. it doens't communicate with the state system. all it does is output a dict that is the highstate data.
the point of the render system is to build the highstate data that the state system uses.
These points are absolutely missed. Otherwise I wouldn't create this issue.
The example is absolutely not representative to the actual code that users probably will and want to write. How it is technically behind the scenes, is in this case not relevant and not in scope.
My point and the reason of this ticket is: It is advisable to add a more clear explanation on how to use the Py renderer syntactically, without spending unnecessary time of research for users.
Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.
Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.
If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.
Activity
whytewolf commentedon Mar 3, 2023
Those points are not missed. as those are not functionality that is possible with any render engine.
including the python one. the render engines all run before the state tree is run. and are finished before the state tree is run. the python renderer is not a magic window into the state system. it doens't communicate with the state system. all it does is output a dict that is the highstate data.
the point of the render system is to build the highstate data that the state system uses.
cdorsman commentedon Mar 3, 2023
These points are absolutely missed. Otherwise I wouldn't create this issue.
The example is absolutely not representative to the actual code that users probably will and want to write. How it is technically behind the scenes, is in this case not relevant and not in scope.
My point and the reason of this ticket is: It is advisable to add a more clear explanation on how to use the Py renderer syntactically, without spending unnecessary time of research for users.
dwoz commentedon Oct 15, 2026
Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below
severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.
If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.
dwoz commentedon Oct 17, 2026
Reopening — there is an open PR tracking a fix for this: #69560.
dwoz commentedon Oct 28, 2026
Closing — consolidated into #70585. The checkbox for this item is in the appropriate theme section of that tracker. Please pick up the sub-item there.