Skip to content

Commit 3a57abd

Browse files
authored
Merge pull request #843 from gbregman/devel
Avoid an exception when running state test
2 parents 02a579d + 27f1d4d commit 3a57abd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

control/state.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,9 @@ def update(self) -> bool:
786786

787787
# Handle namespace changes in which only the load balancing group id was changed
788788
only_lb_group_changed = []
789+
ns_prefix = GatewayState.build_namespace_key("nqn", None)
789790
for key in changed.keys():
790-
if not key.startswith(GatewayState.NAMESPACE_PREFIX):
791+
if not key.startswith(ns_prefix):
791792
continue
792793
try:
793794
(should_process, new_lb_grp_id) = self.namespace_only_lb_group_id_changed(local_state_dict[key],

0 commit comments

Comments
 (0)