Skip to content

Commit

Permalink
fix: allow skipping node groups that are master or delete complete
Browse files Browse the repository at this point in the history
Modified the condition to use OR instead of AND for skipping node groups. Now, node groups with a role of "master" or a status of "DELETE_COMPLETE" are skipped.
  • Loading branch information
okozachenko1203 committed Jul 19, 2024
1 parent 06f8625 commit 07d4e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magnum_cluster_api/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def update_nodegroups_status(
# state and skip work if it's a master node group.
if (
node_group.role == "master"
and node_group.status == fields.ClusterStatus.DELETE_COMPLETE
or node_group.status == fields.ClusterStatus.DELETE_COMPLETE
):
continue

Expand Down

0 comments on commit 07d4e6a

Please sign in to comment.