Merge pull request #8618 from basepi/geteventdocs

Update api.get_event docs to match SaltEvent.get_event
This commit is contained in:
Colton Myers 2013-11-18 15:43:02 -08:00
commit 58f7bb6279

View File

@ -280,13 +280,11 @@ class APIClient(object):
def get_event(self, wait=0.25, tag='', full=False):
'''
Returns next available event with tag tag from event bus
If any within wait seconds
Get a single salt event.
If no events are available, then block for up to ``wait`` seconds.
Return the event if it matches the tag (or ``tag`` is empty)
Otherwise return None
If tag is empty then return events for all tags
If full then add tag field to returned data
If wait is 0 then block forever or until next event becomes available.
'''
return (self.event.get_event(wait=wait, tag=tag, full=full))