MCPcopy Index your code
hub / github.com/saltstack/salt / load_dynamic

Method load_dynamic

salt/state.py:4215–4226  ·  view source on GitHub ↗

If autoload_dynamic_modules is True then automatically load the dynamic modules

(self, matches)

Source from the content-addressed store, hash-verified

4213 return ret
4214
4215 def load_dynamic(self, matches):
4216 """
4217 If autoload_dynamic_modules is True then automatically load the
4218 dynamic modules
4219 """
4220 if not self.opts["autoload_dynamic_modules"]:
4221 return
4222 syncd = self.state.functions["saltutil.sync_all"](list(matches), refresh=False)
4223 if syncd["grains"]:
4224 self.opts["grains"] = salt.loader.grains(self.opts)
4225 self.state.opts["pillar"] = self.state._gather_pillar()
4226 self.state.module_refresh()
4227
4228 def render_state(self, sls, saltenv, mods, matches, local=False, context=None):
4229 """

Callers 1

call_highstateMethod · 0.95

Calls 4

grainsMethod · 0.80
listFunction · 0.50
_gather_pillarMethod · 0.45
module_refreshMethod · 0.45

Tested by

no test coverage detected