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: docker compose ps parsing for version >= 2.21 #336

Merged
merged 5 commits into from
Oct 20, 2023

Conversation

joe-p
Copy link
Contributor

@joe-p joe-p commented Oct 19, 2023

Fixes #335

Proposed Changes

  • Support both the new and old docker compose ps --format json formats

@joe-p
Copy link
Contributor Author

joe-p commented Oct 20, 2023

@achidlow I realized I could simplify the condition since the old output always starts with "[" and the new output doesn't. Used the suggested list comprehension as well.

@aorumbayev aorumbayev self-requested a review October 20, 2023 08:26
joe-p and others added 2 commits October 20, 2023 07:30
Co-authored-by: Adam Chidlow <achidlow@users.noreply.github.com>
src/algokit/core/sandbox.py Outdated Show resolved Hide resolved
Co-authored-by: Al <aorumbayev@pm.me>
@aorumbayev aorumbayev merged commit 06ba5e9 into algorandfoundation:main Oct 20, 2023
3 checks 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.

docker compose 2.21.0 introduces breaking change to ps JSON output
3 participants