If autoload_dynamic_modules is True then automatically load the dynamic modules
(self, matches)
| 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 | """ |
no test coverage detected