-
Notifications
You must be signed in to change notification settings - Fork 120
Closed
Description
$ podman create pod --name mypod
$ cat podman-pods.py
import podman
client=podman.PodmanClient()
for i in client.pods.list():
print(i)
print(help(client.pods.get(pod_id=i)))
$ python podman-images.py
<Pod: 116291543d>
Traceback (most recent call last):
File "/home/dwalsh/go/src/github.com/containers/common/podman-images.py", line 5, in <module>
print(help(client.pods.get(pod_id=i)))
File "/usr/lib/python3.10/site-packages/podman/domain/pods_manager.py", line 56, in get
response.raise_for_status()
File "/usr/lib/python3.10/site-packages/podman/api/client.py", line 64, in raise_for_status
raise not_found(cause, response=self._response, explanation=message)
podman.errors.exceptions.NotFound: 404 Client Error: Not Found (no pod with name or ID <Pod: 116291543d> found: no such pod)
I think there might be two bugs here.
- List, should not truncate the IDs returned.
- Podman pod.get() should be able to handle truncated IDs.
Metadata
Metadata
Assignees
Labels
No labels