Skip to content

[FEATURE REQUEST] access pillar dunder in extension modules during pillar render #65724

Closed

Description

@dwoz

Historically the pillar dunder has never been available or worked in extension modules during pillar render, due to what I can only assume is a bug/oversight in the overly-complex mess of branches and logic in the pillar rendering code. Functionally there is very little reason this shouldn't work, and it even appears like it may have worked at some point, or at least was intended to work by the fact that the ext_pillar data was stuffed right back into opts before attempting to render the remainder of the pillar.

The missing piece to the puzzle here was that the partially-rendered ext_pillar data wasn't available in the opts dict packed into the salt.loader.minion_mods() call when it was generated, and the fact that the functions weren't reloaded after the pillar dict was updated. This commit fixes both of those things.

Ensure the minion_mods are always reloaded with the updated opts dict containing the partial pillar data when rendering pillar with ext_pillar_first enabled.

From #63398

Activity

  1. added
    Feature
    and removed on Dec 18, 2023
  2. added a commit that references this issue on Dec 18, 2023
  3. changed the title [-][FEATURE REQUEST][/-] [+][FEATURE REQUEST] access pillar dunder in extension modules during pillar render[/+] on Dec 18, 2023
  4. added a commit that references this issue on Apr 7, 2024
  5. locked and limited conversation to collaborators on Feb 5, 2025
  6. converted this issue into a discussion #67428 on Feb 5, 2025
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

    Feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions