salt/scripts/salt-call

22 lines
383 B
Plaintext
Raw Normal View History

2011-04-23 05:03:23 +00:00
#!/usr/bin/env python2
'''
2011-08-15 04:37:40 +00:00
Directly call a salt command in the modules, does not require a running salt
minion to run.
2011-04-23 05:03:23 +00:00
'''
import salt.cli
2011-04-23 05:03:23 +00:00
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')