mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 18:50:04 -03:30
replace our rdb tooling w/ the sdb PyPI package
This commit is contained in:
@@ -152,3 +152,8 @@ SERVICE_NAME_DICT = {
|
||||
# Used for sending commands in automatic restart
|
||||
UWSGI_FIFO_LOCATION = '/awxfifo'
|
||||
|
||||
try:
|
||||
socket.gethostbyname('docker.for.mac.internal')
|
||||
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.internal'
|
||||
except Exception:
|
||||
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
||||
|
||||
Reference in New Issue
Block a user