]> git.ipfire.org Git - thirdparty/lxc.git/commit
python3: Add list_containers to C API
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 26 Nov 2013 20:58:44 +0000 (15:58 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 27 Nov 2013 03:29:43 +0000 (22:29 -0500)
commit44b97d6191fc31545b347be1c27b430bfe36de92
treec12b33b79245c8c47774efc788d6abc05d117c50
parent164105f6563d98b832f603e28e506dbabed22cf3
python3: Add list_containers to C API

This adds a new list_containers function to the python3 binding and a
matching override in __init__.py that adds the as_object parameter.

This should be compatible to the previous pure python implementation
with the advantage of also listing active non-defined containers (fixing
github issue #68).

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/python-lxc/lxc.c
src/python-lxc/lxc/__init__.py