Skip to content

Commit 46110c8

Browse files
authored
Fix848/dyn services dont start in prod (#849)
find network using full network name
1 parent 93f8a7d commit 46110c8

File tree

1 file changed

+1
-1
lines changed
  • services/director/src/simcore_service_director

1 file changed

+1
-1
lines changed

services/director/src/simcore_service_director/producer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ async def _get_service_entrypoint(service_boot_parameters_labels: Dict) -> str:
193193
async def _get_swarm_network(client: aiodocker.docker.Docker) -> Dict:
194194
network_name = "_default"
195195
if config.SWARM_STACK_NAME:
196-
network_name = config.SWARM_STACK_NAME
196+
network_name = "{}_default".format(config.SWARM_STACK_NAME)
197197
# try to find the network name (usually named STACKNAME_default)
198198
networks = [x for x in (await client.networks.list()) if "swarm" in x["Scope"] and network_name in x["Name"]]
199199
if not networks or len(networks) > 1:

0 commit comments

Comments
 (0)