saltclass master_top module fails to populate __salt__ in some cases (salt-ssh + saltutil) #50501
Labels
Pending-Discussion
The issue or pull request needs more discussion before it can be closed or merged
stale
Milestone
Description of Issue/Question
When using saltclass master_top module with a salt-ssh client, it fail to populate the salt object and crash with the following message:
[ERROR ] Top function saltclass failed with error 'dict object' has no attribute 'saltutil' for minion myminion
Setup
In my classes, I use a macro that populates the pillar with some certificates found in the mine. These macro are using salt.saltutil.runner:
cacert.macros:
ca.yml:
master config snippet:
Steps to Reproduce Issue
When running
salt myminion pillar.item
, the pillar is resolved "almost" properly (I have a specific bug opened to make it actually working: #36796)When running
salt myminion state.apply
, the following message appears in master logs:[ERROR ] Top function saltclass failed with error 'dict object' has no attribute 'saltutil' for minion myminion
And the output of the command is:
Versions Report
The text was updated successfully, but these errors were encountered: