mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Hook salt script into the cli module
This commit is contained in:
parent
cf8897e280
commit
a02f5db9b3
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue