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

Method shutdown

salt/cli/daemons.py:227–237  ·  view source on GitHub ↗

If sub-classed, run any shutdown operations on this method.

(self, exitcode=0, exitmsg=None)

Source from the content-addressed store, hash-verified

225 self.master.start()
226
227 def shutdown(self, exitcode=0, exitmsg=None):
228 """
229 If sub-classed, run any shutdown operations on this method.
230 """
231 self.shutdown_log_info()
232 msg = "The salt master is shutdown. "
233 if exitmsg is not None:
234 exitmsg = msg + exitmsg
235 else:
236 exitmsg = msg.strip()
237 super().shutdown(exitcode, exitmsg)
238
239
240class Minion(

Callers 5

prepareMethod · 0.95
environment_failureMethod · 0.45
shutdownMethod · 0.45
shutdownMethod · 0.45
shutdownMethod · 0.45

Calls 1

shutdown_log_infoMethod · 0.80

Tested by

no test coverage detected