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

from_env: Use default base_url if no environment is given #372

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

kajinamit
Copy link
Contributor

@kajinamit kajinamit commented Feb 12, 2024

The PodmanClient class has its own mechanism to detect the default value for base_url if no specific value is provided. However this mechanism can't be used when creating an instance by from_env, because from_env requires (DOCKER|CONTAINER)_HOST environment.

This drops the validation from from_env, so that users can use from_env without explicitly setting the HOST environment.

@kajinamit kajinamit force-pushed the default-base-url branch 4 times, most recently from 46788b4 to b2d4682 Compare February 12, 2024 06:52
The PodmanClient class has its own mechanism to detect the default
value for base_url if no specific value is provided. However this
mechanism can't be used when creating an instance by from_env, because
from_env requires (DOCKER|CONTAINER)_HOST environment.

This drops the validation from from_env, so that users can use from_env
without explicitly setting the HOST environment.

Signed-off-by: Takashi Kajinami <[email protected]>
... to resolve the lint failure in CI.

Signed-off-by: Takashi Kajinami <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented Feb 12, 2024

/approve
/lgtm

Copy link
Contributor

openshift-ci bot commented Feb 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kajinamit, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 42e572c into containers:main Feb 12, 2024
13 checks passed
@kajinamit kajinamit deleted the default-base-url branch February 12, 2024 18:07
@kajinamit
Copy link
Contributor Author

I wonder if I can request a new release so that this fix is available in a released version .

@rhatdan
Copy link
Member

rhatdan commented Mar 12, 2024

Should be a new release with podman 5.0 next week.

@rhatdan
Copy link
Member

rhatdan commented Mar 12, 2024

@umohnani8 PTAL

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.

2 participants