mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
21 lines
356 B
Python
Executable File
21 lines
356 B
Python
Executable File
#!/usr/bin/env python2
|
|
'''
|
|
Publish commands to the salt system from the command line on the master.
|
|
'''
|
|
|
|
import salt.cli
|
|
|
|
|
|
def main():
|
|
'''
|
|
The main function
|
|
'''
|
|
cp_ = salt.cli.SaltCP()
|
|
cp_.run()
|
|
|
|
if __name__ == '__main__':
|
|
try:
|
|
main()
|
|
except KeyboardInterrupt:
|
|
raise SystemExit('\nExiting gracefully on Ctrl-c')
|