mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Merge pull request #4495 from ryanpetrello/docker-for-mac-sdb
fix a bug in the sdb-listen setup Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
099a7f6cde
@ -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