Method
__init__
(
self,
opts,
pillar_override=None,
jid=None,
pillar_enc=None,
proxy=None,
context=None,
mocked=False,
loader="states",
initial_pillar=None,
file_client=None,
)
Source from the content-addressed store, hash-verified
| 4889 | stack = [] |
| 4890 | |
| 4891 | def __init__( |
| 4892 | self, |
| 4893 | opts, |
| 4894 | pillar_override=None, |
| 4895 | jid=None, |
| 4896 | pillar_enc=None, |
| 4897 | proxy=None, |
| 4898 | context=None, |
| 4899 | mocked=False, |
| 4900 | loader="states", |
| 4901 | initial_pillar=None, |
| 4902 | file_client=None, |
| 4903 | ): |
| 4904 | self.opts = opts |
| 4905 | if file_client: |
| 4906 | self.client = file_client |
| 4907 | self.preserve_client = True |
| 4908 | else: |
| 4909 | self.client = salt.fileclient.get_file_client(self.opts) |
| 4910 | self.preserve_client = False |
| 4911 | BaseHighState.__init__(self, opts) |
| 4912 | self.state = State( |
| 4913 | self.opts, |
| 4914 | pillar_override, |
| 4915 | jid, |
| 4916 | pillar_enc, |
| 4917 | proxy=proxy, |
| 4918 | context=context, |
| 4919 | mocked=mocked, |
| 4920 | loader=loader, |
| 4921 | initial_pillar=initial_pillar, |
| 4922 | file_client=self.client, |
| 4923 | ) |
| 4924 | self.matchers = salt.loader.matchers(self.opts) |
| 4925 | self.proxy = proxy |
| 4926 | |
| 4927 | # tracks all pydsl state declarations globally across sls files |
| 4928 | self._pydsl_all_decls = {} |
| 4929 | |
| 4930 | # a stack of current rendering Sls objects, maintained and used by the pydsl renderer. |
| 4931 | self._pydsl_render_stack = [] |
| 4932 | |
| 4933 | def push_active(self): |
| 4934 | self.stack.append(self) |
Callers
nothing calls this directly
Tested by
no test coverage detected