fix a bug in the sdb-listen setup

Docker for Mac recently renamed itself to Docker Desktop
This commit is contained in:
Ryan Petrello 2019-08-15 11:50:28 -04:00
parent dc44e68980
commit 57d60e5b97
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -171,7 +171,7 @@ CELERYBEAT_SCHEDULE.update({ # noqa
CLUSTER_HOST_ID = socket.gethostname()
if 'Docker for Mac' in os.getenv('OS', ''):
if 'Docker Desktop' in os.getenv('OS', ''):
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.host.internal'
else:
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]