-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the TypeError exception in the images.prune method
If the prune doesn't remove images, the API returns "null" (with 200) and it's interpreted as None (NoneType) so the for loop throws: "TypeError: 'NoneType' object is not iterable". My fix handles the above described case and the client.images.prune() returns a valid Dict with zero values, which is correct because the Podman didn't remove anything. Signed-off-by: Milan Balazs <milanbalazs01@gmail.com>
- Loading branch information
1 parent
7dbc101
commit 052702c
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters