MCPcopy Create free account
hub / github.com/saltstack/salt / diff_jid

Function diff_jid

salt/modules/snapper.py:914–931  ·  view source on GitHub ↗

Returns the changes applied by a `jid` jid The job id to lookup config Configuration name. CLI Example: .. code-block:: bash salt '*' snapper.diff_jid jid=20160607130930720112

(jid, config="root")

Source from the content-addressed store, hash-verified

912
913
914def diff_jid(jid, config="root"):
915 """
916 Returns the changes applied by a `jid`
917
918 jid
919 The job id to lookup
920
921 config
922 Configuration name.
923
924 CLI Example:
925
926 .. code-block:: bash
927
928 salt '*' snapper.diff_jid jid=20160607130930720112
929 """
930 pre_snapshot, post_snapshot = _get_jid_snapshots(jid, config=config)
931 return diff(config, num_pre=pre_snapshot, num_post=post_snapshot)
932
933
934def create_baseline(tag="baseline", config="root"):

Callers

nothing calls this directly

Calls 2

_get_jid_snapshotsFunction · 0.85
diffFunction · 0.70

Tested by

no test coverage detected