From 8549673d02e418e730f66abf1212db1e20d2021b Mon Sep 17 00:00:00 2001
From: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date: Wed, 28 Sep 2022 15:53:03 +0200
Subject: [PATCH] Properly set the port from CLI when running swh graph
 grpc-serve

---
 swh/graph/cli.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/swh/graph/cli.py b/swh/graph/cli.py
index edf285c5..8afd6927 100644
--- a/swh/graph/cli.py
+++ b/swh/graph/cli.py
@@ -175,6 +175,7 @@ def grpc_serve(ctx, port, java_home, graph):
     config = ctx.obj["config"]
     config.setdefault("graph", {})
     config["graph"]["path"] = graph
+    config["graph"]["port"] = port
 
     logger.debug("Building gPRC server command line")
     cmd, port = build_grpc_server_cmdline(**config["graph"])
-- 
GitLab