FAQ
Hi,
I'm trying to get all the data from the job cache to see if changes were
made for a run and how many formulas succeeded but apparently 'salt-run
jobs.lookup_jid <id>' does not return that information.
Looking at the return.p file for a job directly I can see that it contains
a "changes" field.

How can I get the complete information in the same way that e.g. a call to
'salt "*" state.highstate --out yaml' would return it?

Regards,
   Dennis

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Stephen Benjamin at Feb 12, 2015 at 2:05 pm

    On Thu, Feb 12, 2015 at 04:12:17AM -0800, Dennis Jacobfeuerborn wrote:
    Hi,
    I'm trying to get all the data from the job cache to see if changes were
    made for a run and how many formulas succeeded but apparently 'salt-run
    jobs.lookup_jid <id>' does not return that information.
    Works for me... in foreman_salt, I parse lookup_jid results for same
    information you're looking for.

    [root@prometheus ~]# salt-run jobs.lookup_jid 20150212150334426685
    prometheus.bitbin.de:
         ----------
         file_|-/etc/motd_|-/etc/motd_|-managed:
             ----------
             __run_num__:
                 0
             changes:
                 ----------
                 diff:
                     ---
                     +++
                     @@ -3,3 +3,5 @@
                      _| _| _| _| _| _| _| _| _|
                      _| _| _| _| _| _| _| _| _|
                      _|_|_| _| _|_| _|_|_| _| _| _|
                     +
                     +prometheus.bitbin.de

             comment:
                 File /etc/motd updated
             duration:
                 11.195
             name:
                 /etc/motd
             result:
                 True
             start_time:
                 15:03:40.467650


    Looking at the return.p file for a job directly I can see that it contains
    a "changes" field.

    How can I get the complete information in the same way that e.g. a call to
    'salt "*" state.highstate --out yaml' would return it?

    Regards,
    Dennis

    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupsalt-users @
postedFeb 12, '15 at 12:12p
activeFeb 12, '15 at 2:05p
posts2
users2

People

Translate

site design / logo © 2022 Grokbase