Load the modules into the state
(self, data=None, proxy=None)
| 4973 | State.__init__(self, opts) |
| 4974 | |
| 4975 | def load_modules(self, data=None, proxy=None): |
| 4976 | """ |
| 4977 | Load the modules into the state |
| 4978 | """ |
| 4979 | log.info("Loading fresh modules for state activity") |
| 4980 | # Load a modified client interface that looks like the interface used |
| 4981 | # from the minion, but uses remote execution |
| 4982 | # |
| 4983 | self.functions = salt.client.FunctionWrapper(self.opts, self.opts["id"]) |
| 4984 | # Load the states, but they should not be used in this class apart |
| 4985 | # from inspection |
| 4986 | self.utils = salt.loader.utils(self.opts) |
| 4987 | self.serializers = salt.loader.serializers(self.opts) |
| 4988 | self.states = salt.loader.states( |
| 4989 | self.opts, self.functions, self.utils, self.serializers |
| 4990 | ) |
| 4991 | self.rend = salt.loader.render( |
| 4992 | self.opts, self.functions, states=self.states, context=self.state_con |
| 4993 | ) |
| 4994 | |
| 4995 | |
| 4996 | class MasterHighState(HighState): |