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