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

Fix: panic on upgrade complete #586

Merged
merged 4 commits into from
Sep 9, 2024
Merged

Fix: panic on upgrade complete #586

merged 4 commits into from
Sep 9, 2024

Conversation

kajes
Copy link
Contributor

@kajes kajes commented Sep 6, 2024

If there are multiple controllers in the collective, but only one is left to upgrade, the upgrade complete command would panic with an "index out of range" issue.

This fixes the issue.

Copy link
Contributor

@thomascellerier thomascellerier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to write a test for this?

Copy link
Contributor Author

@kajes kajes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to write a test for this?

Added a test for this now

@kajes kajes merged commit 0b30995 into main Sep 9, 2024
2 checks passed
@kajes kajes deleted the index-out-of-range-issue branch September 9, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants