Skip to content

Commit

Permalink
grpc.py: fix gateway name reference
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum committed Dec 5, 2023
1 parent 9cebb7f commit 6723476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 6723476

Please sign in to comment.