Add all, external, and label to Image.prune()
Param all is now supported by prune. Param external is now supported by prune. Filter by label, which was already supported, is now documented and tested.
Resolves: https://github.com/containers/podman-py/issues/312
We were not able to find or create Copr project packit/containers-podman-py-413 specified in the config with the following error:
Packit received HTTP 500 Internal Server Error from Copr Service. Check the Copr status page: https://copr.fedorainfracloud.org/status/stats/, or ask for help in Fedora Build System matrix channel https://matrix.to/#/#buildsys:fedoraproject.org.
Unless the HTTP status code above is >= 500, please check your configuration for:
- typos in owner and project name (groups need to be prefixed with
@) - whether the project name doesn't contain not allowed characters (only letters, digits, underscores, dashes and dots must be used)
- whether the project itself exists (Packit creates projects only in its own namespace)
- whether Packit is allowed to build in your Copr project
- whether your Copr project/group is not private
/packit build
LGTM @umohnani8 @jwhonce @mwhahaha PTAL
Quoting @jwhonce from the issue
Adding external and all as kwargs would require extra validation if the client has been instantiated in compatible_version mode
I scratched my head on this comment, but I think it's just a simple check that I am missing. Maybe you could help me out with what do you mean with this :)
Also, apologies for several force pushes, looks like I can't get pylint locally and in GH work nicely together, so it keeps complaining 🤦🏻♂️
Quoting @jwhonce from the issue
Adding external and all as kwargs would require extra validation if the client has been instantiated in compatible_version mode
I scratched my head on this comment, but I think it's just a simple check that I am missing. Maybe you could help me out with what do you mean with this :)
@inknos It is possible to configure the PodmanClient to only use the compatible API for a Podman service or talk to a Docker service. I was questioning how would we handle providing these additional parameters to the call since they are not supported in that case. Should podman-py report an error? Or, should it just make the call and allow the API service to either ignore them or report an error?
Should podman-py report an error? Or, should it just make the call and allow the API service to either ignore them or report an error?
As long as podman-py does not crash or give a traceback I like to see the api errors, more than translating what's happening. Maybe I would wrap the calls with a warning in the logs.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: inknos, jwhonce
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [inknos,jwhonce]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment