mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Hook salt script into the cli module
This commit is contained in:
parent
cf8897e280
commit
a02f5db9b3
@ -5,14 +5,14 @@ Publish commands to the salt system from the command line on the master.
|
||||
# Eventually we need to be able to interlink salt masters and form quorums,
|
||||
# and create the ability for externel systesm to talk to salt. This interface
|
||||
# is just a cli interface so that we can get this kicked off and working
|
||||
import salt
|
||||
import salt.cli
|
||||
|
||||
def main():
|
||||
'''
|
||||
The main function
|
||||
'''
|
||||
client = salt.Client()
|
||||
client.start()
|
||||
client = salt.cli.SaltCMD()
|
||||
client.run()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user