Skip to content

Commit

Permalink
Avoid an exception when running state test.
Browse files Browse the repository at this point in the history
Fixes #842

Signed-off-by: Gil Bregman <[email protected]>
  • Loading branch information
gbregman committed Sep 1, 2024
1 parent 02a579d commit f123b63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,9 @@ def update(self) -> bool:

# Handle namespace changes in which only the load balancing group id was changed
only_lb_group_changed = []
ns_prefix = GatewayState.build_namespace_key("nqn")
for key in changed.keys():
if not key.startswith(GatewayState.NAMESPACE_PREFIX):
if not key.startswith(ns_prefix):
continue
try:
(should_process, new_lb_grp_id) = self.namespace_only_lb_group_id_changed(local_state_dict[key],
Expand Down

0 comments on commit f123b63

Please sign in to comment.