From 672347653419496f496a8edfff568f60e01ae73c Mon Sep 17 00:00:00 2001 From: Alexander Indenbaum Date: Tue, 5 Dec 2023 18:02:54 +0200 Subject: [PATCH] grpc.py: fix gateway name reference Signed-off-by: Alexander Indenbaum --- control/grpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/grpc.py b/control/grpc.py index 20023144..a01e9988 100644 --- a/control/grpc.py +++ b/control/grpc.py @@ -476,7 +476,7 @@ def set_ana_state_safe(self, ana_info: pb2.ana_info, context=None): # Iterate over nqn_ana_states in ana_info for nas in ana_info.states: nqn = nas.nqn - prefix = f"{self.gateway_state.local.LISTENER_PREFIX}_{nqn}_{self.name}_" + prefix = f"{self.gateway_state.local.LISTENER_PREFIX}_{nqn}_{self.gateway_name}_" for listener_key in [key for key in state.keys() if key.startswith(prefix)]: listener = json.loads(state[listener_key])