salt/scripts/salt-call
2011-12-27 12:02:09 -08:00

22 lines
383 B
Python
Executable File

#!/usr/bin/env python2
'''
Directly call a salt command in the modules, does not require a running salt
minion to run.
'''
import salt.cli
def main():
'''
The main function
'''
client = salt.cli.SaltCall()
client.run()
if __name__ == '__main__':
try:
main()
except KeyboardInterrupt:
raise SystemExit('\nExiting gracefully on Ctrl-c')