Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid an exception when running state test #843

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading