Skip to content

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

Merged
uranusjr merged 1 commit into
apache:mainfrom
astronomer:docker-context-list-of-dict
Oct 3, 2023
Merged

Parse 'docker context ls --format=json' correctly#34711
uranusjr merged 1 commit into
apache:mainfrom
astronomer:docker-context-list-of-dict

Conversation

@uranusjr

@uranusjr uranusjr commented Oct 2, 2023

Copy link
Copy Markdown
Member

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