mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
fix a bug in the sdb-listen setup
Docker for Mac recently renamed itself to Docker Desktop
This commit is contained in:
@@ -171,7 +171,7 @@ CELERYBEAT_SCHEDULE.update({ # noqa
|
|||||||
CLUSTER_HOST_ID = socket.gethostname()
|
CLUSTER_HOST_ID = socket.gethostname()
|
||||||
|
|
||||||
|
|
||||||
if 'Docker for Mac' in os.getenv('OS', ''):
|
if 'Docker Desktop' in os.getenv('OS', ''):
|
||||||
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.host.internal'
|
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.host.internal'
|
||||||
else:
|
else:
|
||||||
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
||||||
|
|||||||
Reference in New Issue
Block a user