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 node-disruption-types containing empty strings #72

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

geobeau
Copy link
Contributor

@geobeau geobeau commented Oct 3, 2024

Split was containing empty string. Now we filter them out to avoid rejecting maintenances.

cmd/main.go Outdated
@@ -100,14 +101,16 @@ func main() {
os.Exit(1)
}

nodeDisruptionTypes := utils.FilterEmptyString(strings.Split(nodeDisruptionTypesRaw, ","))
Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to use strings.FieldsFunc instead of a custom utility func

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Split was containing empty string. Now we filter them out
to avoid rejecting maintenances.
@geobeau geobeau merged commit 0619e04 into criteo:main Oct 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants