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

Parse 'docker context ls --format=json' correctly #34711

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Oct 2, 2023

Apparently the command outputs multiple lines of JSON objects when there are more than one context, not one JSON array of objects. Pretty f-ed up if you ask me but it's what it is.

This should fix the JSON error mentioned in #34701 (comment) (not the ModuleNotFoundError)

cc @Lee-W

@uranusjr uranusjr force-pushed the docker-context-list-of-dict branch 2 times, most recently from ed1de75 to 9cebb55 Compare October 2, 2023 13:45
Apparently the command outputs *multiple lines of JSON objects* when
there are more than one context, not one JSON array of objects. Pretty
f-ed up if you ask me but it's what it is.
@uranusjr uranusjr force-pushed the docker-context-list-of-dict branch from 9cebb55 to 037bbfa Compare October 2, 2023 19:48
@uranusjr uranusjr merged commit 1928498 into apache:main Oct 3, 2023
@uranusjr uranusjr deleted the docker-context-list-of-dict branch October 3, 2023 09:42
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.2 milestone Oct 5, 2023
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Oct 5, 2023
ephraimbuddy pushed a commit that referenced this pull request Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants