mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 19:50:05 -03:30
Fix sanity check to use the relevant active connection
This commit is contained in:
@@ -46,7 +46,7 @@ class Control(object):
|
||||
reply_queue = Control.generate_reply_queue_name()
|
||||
self.result = None
|
||||
|
||||
with pg_bus_conn() as conn:
|
||||
with pg_bus_conn(new_connection=True) as conn:
|
||||
conn.listen(reply_queue)
|
||||
conn.notify(self.queuename, json.dumps({'control': command, 'reply_to': reply_queue}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user