Skip to content

Instantly share code, notes, and snippets.

@SEJeff
Forked from auser/eventWatch.py
Created June 20, 2013 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SEJeff/5825905 to your computer and use it in GitHub Desktop.
Save SEJeff/5825905 to your computer and use it in GitHub Desktop.
import salt.utils.event
event = salt.utils.event.MasterEvent('/var/run/salt/master')
while True:
data = event.get_event()
print(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment