Skip to content

Instantly share code, notes, and snippets.

@auser
Created June 11, 2013 22:20
Show Gist options
  • Select an option

  • Save auser/5761268 to your computer and use it in GitHub Desktop.

Select an option

Save auser/5761268 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