Merge pull request #2696 from rooftopcellist/update_sdb_hostname

fix sdb, update host var
This commit is contained in:
Christian Adams
2018-07-27 09:37:06 -04:00
committed by GitHub

View File

@@ -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]