Open kiemlicz opened 5 years ago
just taking a quick glance at the code i think you are pointing in the right direction of the issue. Because when it hits runner.run()
this is what kwargs becomes: https://github.com/saltstack/salt/blob/v2018.3.3/salt/runner.py#L199-L201
It never references self.opts['kwargs'] and when it tries to parse the kwargs and args with the call salt.minion.load_args_and_kwargs
it tires parsing self.opts['arg']
. i've not been in this code a ton but i'm guessing that kwargs will need to be added to the args in thorium/runner.py.
but someone from @saltstack/team-core can correct me if i'm wrong about that analysis
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.
gladly reopen the issue.
Thank you for updating this issue. It is no longer marked as stale.
Description of Issue/Question
Thorium's
runner.cmd
is not building arguments properly (I guess).Setup
Create something like this in some example sls under thorium_roots:
For convenience setup rawfile_json
Steps to Reproduce Issue
Send some events to trigger thorium
saltenv
will not be passed to thestate.orchestrate
The event dump:Trying to:
Brings me closer to solution but still doesn't work
Mind separated
{'orchestration_jid': ...}
How do I get this working (workaround)?
I'm guessing the problem is here (
thorium/runner.py
):Could you give me hints or code reference where these options are properly handled so that I'll fix it myself?
Versions Report