Skip to content

Commit 0a6b514

Browse files
committed
network: add namespace to network _connected
1 parent 39f859c commit 0a6b514

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/warnet/network.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def _connected(end="\n"):
5858
for tank in tanks:
5959
# Get actual
6060
try:
61-
peerinfo = json.loads(_rpc(tank.metadata.name, "getpeerinfo", ""))
61+
peerinfo = json.loads(
62+
_rpc(tank.metadata.name, "getpeerinfo", "", namespace=tank.metadata.namespace)
63+
)
6264
actual = 0
6365
for peer in peerinfo:
6466
if is_connection_manual(peer):

0 commit comments

Comments
 (0)