mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
fix a bug in the sdb-listen setup
Docker for Mac recently renamed itself to Docker Desktop
This commit is contained in:
parent
dc44e68980
commit
57d60e5b97
@ -171,7 +171,7 @@ CELERYBEAT_SCHEDULE.update({ # noqa
|
||||
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'
|
||||
else:
|
||||
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user