mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Going for a more generic 'just pass' option
This commit is contained in:
@@ -10,7 +10,6 @@ import copy
|
|||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import uuid
|
import uuid
|
||||||
import platform
|
|
||||||
|
|
||||||
# Centos-7 doesn't include the svg mime type
|
# Centos-7 doesn't include the svg mime type
|
||||||
# /usr/lib64/python/mimetypes.py
|
# /usr/lib64/python/mimetypes.py
|
||||||
@@ -177,10 +176,10 @@ CLUSTER_HOST_ID = socket.gethostname()
|
|||||||
if 'Docker Desktop' 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:
|
||||||
if platform.system() == 'Darwin':
|
try:
|
||||||
os.environ['SDB_NOTIFY_HOST'] = os.popen('ipconfig getifaddr en0').read().strip()
|
|
||||||
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]
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
WEBSOCKET_ORIGIN_WHITELIST = ['https://localhost:8043', 'https://localhost:3000']
|
WEBSOCKET_ORIGIN_WHITELIST = ['https://localhost:8043', 'https://localhost:3000']
|
||||||
AWX_CALLBACK_PROFILE = True
|
AWX_CALLBACK_PROFILE = True
|
||||||
|
|||||||
Reference in New Issue
Block a user