mirror of
https://github.com/ansible/awx.git
synced 2026-02-12 23:24:48 -03:30
Set SDB_NOTIFY_HOST for all processes
This commit is contained in:
committed by
Shane McDonald
parent
f1df4c54f8
commit
81f6d36a3a
@@ -177,15 +177,6 @@ CELERYBEAT_SCHEDULE.update({ # noqa
|
||||
|
||||
CLUSTER_HOST_ID = socket.gethostname()
|
||||
|
||||
|
||||
if 'Docker Desktop' in os.getenv('OS', ''):
|
||||
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.host.internal'
|
||||
else:
|
||||
try:
|
||||
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
AWX_CALLBACK_PROFILE = True
|
||||
|
||||
if 'sqlite3' not in DATABASES['default']['ENGINE']: # noqa
|
||||
|
||||
Reference in New Issue
Block a user