MCPcopy Create free account
hub / github.com/saltstack/salt / destroy

Method destroy

salt/client/__init__.py:2281–2296  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2279 self.event.unsubscribe(f"salt/job/{job_id}")
2280
2281 def destroy(self):
2282 if self.event is not None:
2283 self.event.destroy()
2284 self.event = None
2285 if hasattr(self, "returners") and self.returners is not None:
2286 if hasattr(self.returners, "destroy"):
2287 self.returners.destroy()
2288 self.returners = {}
2289 if hasattr(self, "functions") and self.functions is not None:
2290 if hasattr(self.functions, "destroy"):
2291 self.functions.destroy()
2292 self.functions = {}
2293 if hasattr(self, "utils") and self.utils is not None:
2294 if hasattr(self.utils, "destroy"):
2295 self.utils.destroy()
2296 self.utils = {}
2297
2298 def __enter__(self):
2299 return self

Callers 8

__del__Method · 0.95
__exit__Method · 0.95
_runMethod · 0.45
_run_batch_asyncMethod · 0.45
runMethod · 0.45
runMethod · 0.45
shutdownMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected