Skip to content

Commit

Permalink
Merge pull request #843 from gbregman/devel
Browse files Browse the repository at this point in the history
Avoid an exception when running state test
  • Loading branch information
gbregman authored Sep 1, 2024
2 parents 02a579d + 27f1d4d commit 3a57abd
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", None)
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 3a57abd

Please sign in to comment.