MCPcopy
hub / github.com/saltstack/salt / _new_mods

Function _new_mods

salt/modules/kmod.py:23–34  ·  view source on GitHub ↗

Return a list of the new modules, pass an lsmod dict before running modprobe and one after modprobe has run

(pre_mods, post_mods)

Source from the content-addressed store, hash-verified

21
22
23def _new_mods(pre_mods, post_mods):
24 """
25 Return a list of the new modules, pass an lsmod dict before running
26 modprobe and one after modprobe has run
27 """
28 pre = set()
29 post = set()
30 for mod in pre_mods:
31 pre.add(mod["module"])
32 for mod in post_mods:
33 post.add(mod["module"])
34 return post - pre
35
36
37def _rm_mods(pre_mods, post_mods):

Callers 1

loadFunction · 0.85

Calls 2

setFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected