Skip to content

Commit

Permalink
added new config variable to docker_dumper to manually set host confi…
Browse files Browse the repository at this point in the history
…g if not none
  • Loading branch information
jal347 committed Jun 14, 2023
1 parent dcf8c2d commit 2ba0e73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion biothings/hub/dataload/dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,10 @@ def prepare_client(self):
elif len(self.__class__.SRC_URLS) > 1:
raise DumperException("SRC_URLS list should contain only one source url string")
if not self._state["client"]:
docker_connection = btconfig.DOCKER_CONFIG.get(self.source_config["connection_name"])
if btconfig.DOCKER_HOST:
docker_connection = btconfig.DOCKER_CONFIG.get(btconfig.DOCKER_HOST)
else:
docker_connection = btconfig.DOCKER_CONFIG.get(self.source_config["connection_name"])
self.DOCKER_CLIENT_URL = docker_connection.get("client_url")
parsed = urlparse.urlparse(docker_connection.get("client_url"))
scheme = parsed.scheme
Expand Down

0 comments on commit 2ba0e73

Please sign in to comment.