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

Function salt_api

salt/scripts.py:582–595  ·  view source on GitHub ↗

The main function for salt-api

()

Source from the content-addressed store, hash-verified

580
581
582def salt_api():
583 """
584 The main function for salt-api
585 """
586 _pin_multiprocessing_fork()
587
588 import salt.utils.process
589
590 salt.utils.process.notify_systemd()
591
592 import salt.cli.api
593
594 sapi = salt.cli.api.SaltAPI() # pylint: disable=E1120
595 sapi.start()
596
597
598def salt_main():

Callers

nothing calls this directly

Calls 2

startMethod · 0.95

Tested by

no test coverage detected