Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

history() doesn't work #89

Open
rcerven opened this issue Sep 21, 2020 · 0 comments
Open

history() doesn't work #89

rcerven opened this issue Sep 21, 2020 · 0 comments

Comments

@rcerven
Copy link

rcerven commented Sep 21, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant