python-podman icon indicating copy to clipboard operation
python-podman copied to clipboard

history() doesn't work

Open rcerven opened this issue 5 years ago • 0 comments

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

rcerven avatar Sep 21 '20 17:09 rcerven