Execute the salt-ssh system
()
| 534 | |
| 535 | |
| 536 | def salt_ssh(): |
| 537 | """ |
| 538 | Execute the salt-ssh system |
| 539 | """ |
| 540 | import salt.cli.ssh |
| 541 | |
| 542 | if "" in sys.path: |
| 543 | sys.path.remove("") |
| 544 | try: |
| 545 | client = salt.cli.ssh.SaltSSH() |
| 546 | _install_signal_handlers(client) |
| 547 | client.run() |
| 548 | except SaltClientError as err: |
| 549 | print(str(err), file=sys.stderr, flush=True) |
| 550 | try: |
| 551 | if client.options.hard_crash: |
| 552 | trace = traceback.format_exc() |
| 553 | log.error(trace) |
| 554 | except (AttributeError, KeyError): |
| 555 | pass |
| 556 | sys.exit(salt.defaults.exitcodes.EX_GENERIC) |
| 557 | |
| 558 | |
| 559 | def salt_cloud(): |
nothing calls this directly
no test coverage detected