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 autodetect_docker_context for list of dict case #34779

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

utkarsharma2
Copy link
Contributor

In breeze's autodetect_docker_context() there is one case that missed, when the output of docker context ls --format=json" is [{"Name": "desktop-linux", "DockerEndpoint": "unix://desktop-linux"}]. This PR aims to handle this case.

@utkarsharma2 utkarsharma2 marked this pull request as draft October 5, 2023 13:14
@utkarsharma2 utkarsharma2 force-pushed the FixAutodetect_docker_context branch from 40682bb to 2028664 Compare October 5, 2023 14:01
@utkarsharma2 utkarsharma2 marked this pull request as ready for review October 5, 2023 14:02
@utkarsharma2 utkarsharma2 marked this pull request as draft October 5, 2023 14:11
@utkarsharma2 utkarsharma2 force-pushed the FixAutodetect_docker_context branch from 2028664 to c4d525b Compare October 5, 2023 15:15
@utkarsharma2 utkarsharma2 marked this pull request as ready for review October 5, 2023 15:21
@Taragolis
Copy link
Contributor

As follow up I guess we could try to run this step by use python-on-whales so many problems happen last time with this part and --format=json"

Copy link
Member

@uranusjr uranusjr left a comment

Choose a reason for hiding this comment

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

This is so f-ked up

@utkarsharma2
Copy link
Contributor Author

@Taragolis I can give it a shot. :)
Just a confirmation do we update all the similar instances with equvilant in python-on-whales or just this instance?

@ephraimbuddy ephraimbuddy merged commit 5c2dc53 into apache:main Oct 6, 2023
ephraimbuddy pushed a commit that referenced this pull request Oct 6, 2023
* Fix autodetect_docker_context for list of dict case

* Handle the case of dict

(cherry picked from commit 5c2dc53)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants