Skip to content

[DOCS]Documentation py renderer needs upgrade #63698

Closed as not planned
Closed as not planned

Description

@cdorsman

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') }, } ], }

Type of documentation
Salt documentation

Location or format of documentation
Insert page URL if applicable.

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. added
    documentation
    on Feb 10, 2023
  2. added
    severity-medium
    and removed on Feb 13, 2023
  3. whytewolf commented on Mar 3, 2023

    @whytewolf
    Collaborator

    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.

  4. cdorsman commented on Mar 3, 2023

    @cdorsman
    Author

    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.

  5. added this to the Sulphur v3006.27 milestone on Jun 25, 2026
  6. dwoz commented on Oct 15, 2026

    @dwoz
    Contributor

    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.

  7. dwoz commented on Oct 17, 2026

    @dwoz
    Contributor

    Reopening — there is an open PR tracking a fix for this: #69560.

  8. reopened this on Oct 17, 2026
  9. dwoz commented on Oct 28, 2026

    @dwoz
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Renderersdocumentationseverity-mediumtime-estimate-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions