Skip to content

Commit

Permalink
grpc.py fix prefix such as prefix='listener__nqn.2016-06.io.spdk:cnod…
Browse files Browse the repository at this point in the history
…e1_client.nvmeof.mypool.ceph-nvme-vm3.murjlo_'

Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum committed Dec 5, 2023
1 parent 7602990 commit 9965248
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.gateway_name}_"
prefix = f"{self.gateway_state.local.LISTENER_PREFIX}{nqn}_{self.gateway_name}_"
listener_keys = [key for key in state.keys() if key.startswith(prefix)]
self.logger.info(f"Iterate over {nqn=} {prefix=} {listener_keys=}")

Expand Down

0 comments on commit 9965248

Please sign in to comment.