import podman pclient = podman.Client() img = pclient.images.get('6c0fc7ee13e0') for his in img.history(): print(his) fails with : Traceback (most recent call last): File "test.py", line 11, in <module> for his in img.history(): TypeError: 'list' object is not callable problem is that when Image object is created, it defines attribute history and sets it to '[]' which overrides history() method podman version: podman-2.0.6-1.fc32.x86_64 python podman version: 1.6.0
import podman
pclient = podman.Client()
img = pclient.images.get('6c0fc7ee13e0')
for his in img.history():
print(his)
fails with :
Traceback (most recent call last):
File "test.py", line 11, in
for his in img.history():
TypeError: 'list' object is not callable
problem is that when Image object is created, it defines attribute history and sets it to '[]'
which overrides history() method
podman version: podman-2.0.6-1.fc32.x86_64
python podman version: 1.6.0