mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Merge pull request #2696 from rooftopcellist/update_sdb_hostname
fix sdb, update host var
This commit is contained in:
@@ -154,8 +154,8 @@ SERVICE_NAME_DICT = {
|
|||||||
"nginx": "nginx"}
|
"nginx": "nginx"}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
socket.gethostbyname('docker.for.mac.internal')
|
socket.gethostbyname('docker.for.mac.host.internal')
|
||||||
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.internal'
|
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.host.internal'
|
||||||
except Exception:
|
except Exception:
|
||||||
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user