-
Notifications
You must be signed in to change notification settings - Fork 127
Fix: use proper OS separator depending on runtime #751
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
Conversation
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Test errors
Expand to view the tests failures
|
internal/compose/compose.go
Outdated
| timeout := startTime.Add(waitForHealthyTimeout) | ||
|
|
||
| containerIDs := strings.Split(strings.TrimSpace(b.String()), "\n") | ||
| containerIDs := docker.SplitDockerContainerIDs(b.Bytes()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think strings.Fields() does what we expect here.
| containerIDs := docker.SplitDockerContainerIDs(b.Bytes()) | |
| containerIDs := strings.Fields(b.String()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I wasn't familiar with this function. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
@mtojek I have tested this and it is working fine 👍 |
|
It looks like you posted also something else: |
This PR fixes the issue around the processing of
docker psoutput, where the tool needs to extract container IDs. It looks like there was a bug around splitting.@ManojS-shetty Could you please test if this change helps in your case?
Test steps:
make install.elastic-package service up -v