mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #37282 from thatch45/raet_cpub
add cpub to raet event for compat
This commit is contained in:
commit
3b62a89e45
1 changed files with 8 additions and 0 deletions
|
@ -46,6 +46,7 @@ class RAETEvent(object):
|
|||
self.stack = None
|
||||
self.ryn = 'manor' # remote yard name
|
||||
self.connected = False
|
||||
self.cpub = False
|
||||
self.__prep_stack(listen)
|
||||
|
||||
def __prep_stack(self, listen):
|
||||
|
@ -132,6 +133,7 @@ class RAETEvent(object):
|
|||
self.stack.transmit(msg, self.stack.nameRemotes[self.ryn].uid)
|
||||
self.stack.serviceAll()
|
||||
self.connected = True
|
||||
self.cpub = True
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
@ -250,6 +252,12 @@ class RAETEvent(object):
|
|||
except Exception:
|
||||
pass
|
||||
|
||||
def close_pub(self):
|
||||
'''
|
||||
Here for compatability
|
||||
'''
|
||||
return
|
||||
|
||||
def destroy(self):
|
||||
if hasattr(self, 'stack'):
|
||||
self.stack.server.close()
|
||||
|
|
Loading…
Add table
Reference in a new issue