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

Handle CorosyncCmapctlGatherer receiving empty lines #171

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

jamie-suse
Copy link
Contributor

Currently, CorosyncCmapctlGatherer is failing when it receives an empty line in the output from corosync-cmapctl. This is because it attempts to perform string splitting operations on the empty line.

This PR adds a check for empty lines and omits processing them. Also it adds an ending newline character to the test data file corosynccmap-ctl.output so that it will be like the output from corosync-cmapctl.

Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

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

Damn newlines 😄

Copy link
Contributor

@arbulu89 arbulu89 left a comment

Choose a reason for hiding this comment

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

That's why we used regex in the previous implementation hehe

@jamie-suse jamie-suse merged commit 95b2268 into main Jan 17, 2023
@jamie-suse jamie-suse deleted the fix-corosynccmapctl branch January 17, 2023 11:05
@arbulu89 arbulu89 added the bug Something isn't working label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

None yet

3 participants