Make raw imports from _utils work - #46841
Conversation
357eddb to
1c26f09
Compare
terminalmage
left a comment
There was a problem hiding this comment.
This would not be a good idea, it would add utils functions to both __salt__ and __states__.
Can you show an example of what you're trying to do, what you expect to happen, and what is happening instead? Your most recent comment in the linked issue doesn't really offer much information.
|
I'm trying to make the following example from the doc work:
In v2017.7.3 it fails with an |
|
OK, I'm not familiar with this functionality, I will investigate. |
|
I see now what you meant in your comment: I did not use those states when I tested the patch, so it looked okay. |
|
We definitely don't want to merge this. I'm going to close this but we can discuss a path forward in #32500. |
|
No problem, let's discuss the possible alternatives there. |
This is a quick hack to make it work with salt-ssh.
It would be great if anyone could outline the proper solution, since I got lost in module loading logic.
What issues does this PR fix or reference?
#32500
Previous Behavior
Importing
_utilsmodule resulted inImportError.New Behavior
Importing
_utilsmodule works as described in https://docs.saltstack.com/en/latest/topics/utils/index.htmlTests written?
No
Commits signed with GPG?
Yes