Add sleep to make sure the event jids don't collide

This commit is contained in:
Thomas S Hatch 2014-06-26 14:01:37 -06:00
parent 6c91249e65
commit d2d45a6430

View File

@ -41,6 +41,7 @@ class SaltEvent(object):
self.__prep_stack()
def __prep_stack(self):
time.sleep(0.01) # Make sure the event jids don't collide
self.yid = salt.utils.gen_jid()
name = 'event' + self.yid
cachedir = self.opts.get('cachedir', os.path.join(syspaths.CACHE_DIR, self.node))