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

Method _run_check_function

salt/state.py:1114–1120  ·  view source on GitHub ↗

Format slot args and run unless/onlyif function.

(self, entry)

Source from the content-addressed store, hash-verified

1112 return ret
1113
1114 def _run_check_function(self, entry):
1115 """Format slot args and run unless/onlyif function."""
1116 fun = entry.pop("fun")
1117 args = entry.pop("args") if "args" in entry else []
1118 cdata = {"args": args, "kwargs": entry}
1119 self.format_slots(cdata)
1120 return self.functions[fun](*cdata["args"], **cdata["kwargs"])
1121
1122 def _run_check_onlyif(self, low: LowChunk, cmd_opts) -> dict[str, Any]:
1123 """

Callers 2

_run_check_onlyifMethod · 0.95
_run_check_unlessMethod · 0.95

Calls 2

format_slotsMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected