-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_utils modules have no access to __salt__ or __utils__ #55232
Comments
utils need to be loaded up before looking at the loader code for utils it does not look like it packs |
Can we add packing |
It is possible to cross-call core utils from custom ones just by importing them:
|
True, I suppose the same logic cannot be applied to custom _utils ? |
I believe this is doable and should be able to be done similar to how we are doing it with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Description of Issue
Putting utility functions that aren't intended to be run via the cli in _utils is a good way to organize code, however, its utility is severely limited by the fact that you cannot cross-call execution nor utility modules (via
__salt__
/__utils__
)Setup
Normal salt installation. Create some example modules to demonstrate.
Be sure to sync:
Steps to Reproduce Issue
Demonstrate the problem:
Versions Report
The text was updated successfully, but these errors were encountered: