mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 16:47:45 -02:30
Make pubsub.subscribe work.
This commit is contained in:
@@ -103,7 +103,7 @@ class PubSub(object):
|
|||||||
if message is None:
|
if message is None:
|
||||||
time.sleep(max(wait, 0.001))
|
time.sleep(max(wait, 0.001))
|
||||||
else:
|
else:
|
||||||
yield json.loads(message)
|
yield json.loads(message['data'])
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
"""Close the pubsub connection."""
|
"""Close the pubsub connection."""
|
||||||
|
|||||||
Reference in New Issue
Block a user