hook in the scripts function for the salt-ssh script

This commit is contained in:
Thomas S Hatch 2013-07-01 15:47:31 -06:00
parent da658864a6
commit 041e34b7aa

View file

@ -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