mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
hook in the scripts function for the salt-ssh script
This commit is contained in:
parent
da658864a6
commit
041e34b7aa
1 changed files with 13 additions and 0 deletions
|
@ -91,6 +91,19 @@ def salt_run():
|
|||
raise SystemExit('\nExiting gracefully on Ctrl-c')
|
||||
|
||||
|
||||
def salt_ssh():
|
||||
'''
|
||||
Execute the salt-ssh system
|
||||
'''
|
||||
if '' in sys.path:
|
||||
sys.path.remove('')
|
||||
try:
|
||||
client = salt.cli.SaltSSH()
|
||||
client.run()
|
||||
except KeyboardInterrupt:
|
||||
raise SystemExit('\nExiting gracefully on Ctrl-c')
|
||||
|
||||
|
||||
def salt_main():
|
||||
'''
|
||||
Publish commands to the salt system from the command line on the
|
||||
|
|
Loading…
Add table
Reference in a new issue