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

Method extend

salt/utils/pydsl.py:182–193  ·  view source on GitHub ↗
(self, *state_funcs)

Source from the content-addressed store, hash-verified

180 return slsmods[0] if len(slsmods) == 1 else slsmods
181
182 def extend(self, *state_funcs):
183 if self.options.ordered or self.last_func():
184 raise PyDslError("Cannot extend() after the ordered option was turned on!")
185 for f in state_funcs:
186 state_id = f.mod._state_id
187 self.extends.append(self.get_all_decls().pop(state_id))
188 i = len(self.decls)
189 for decl in reversed(self.decls):
190 i -= 1
191 if decl._id == state_id:
192 del self.decls[i]
193 break
194
195 def state(self, id=None):
196 if not id:

Callers 15

_pytestFunction · 0.45
_ci_testFunction · 0.45
runMethod · 0.45
_property_data_filesMethod · 0.45
upload_artifactsFunction · 0.45
run_auditFunction · 0.45
createFunction · 0.45
define_cache_seedFunction · 0.45
upload_coverageFunction · 0.45
download_fileFunction · 0.45

Calls 5

last_funcMethod · 0.95
get_all_declsMethod · 0.95
PyDslErrorClass · 0.85
appendMethod · 0.45
popMethod · 0.45

Tested by 15

run_testFunction · 0.36
run_pytestFunction · 0.36
last_failedFunction · 0.36
run_patternFunction · 0.36
install_saltFunction · 0.36
_runFunction · 0.36
test_pkg_pathsFunction · 0.36