Please add JID to Jinja Context #67337
Replies: 14 comments
-
Yeah, we should reasonably be able to pass the |
Beta Was this translation helpful? Give feedback.
-
Isn't the JobID only available for non-local calls? So a |
Beta Was this translation helpful? Give feedback.
-
the __pub_jid is the jid assigned from the master, so if you run --local, aka masterless, it will never hit the publish bus, and won't get the pub_jid. |
Beta Was this translation helpful? Give feedback.
-
@saltstack/team-triage |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
This feature would be very beneficial for a use case I'm working with. Consider a case where we log into a device and create a session. We could make the session name include the job id so that we have an easier time cross referencing the execution on the remote device with the job results, located on the minion / master |
Beta Was this translation helpful? Give feedback.
-
I am working on a solution where we need like to correlate logs generated by salt and logs created by processes that are triggered by salt (perhaps via cmd.run or something like that). It would be relatively easy to match up log entries if we could capture the |
Beta Was this translation helpful? Give feedback.
-
Having access to the JID would be useful for a use case of mine also |
Beta Was this translation helpful? Give feedback.
-
@waynew another good one for the Test Clinic, assigning you only in attempt to help write tests. We will still need tests written before we can commit to a release cycle for this issue and PR, but thank you all for your contributions! |
Beta Was this translation helpful? Give feedback.
-
Any news on this? |
Beta Was this translation helpful? Give feedback.
-
Any news on this ? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Any update on this ? |
Beta Was this translation helpful? Give feedback.
-
Description of Issue/Question
The job id is not presently available via Jinja during state runs.
Note for starting point from @gtmanfred:
https://github.com/saltstack/salt/blob/2018.3/salt/modules/state.py#L1053
Setup
N/A
Steps to Reproduce Issue
N/A
Versions Report
New request.
Beta Was this translation helpful? Give feedback.
All reactions