]> git.proxmox.com Git - mirror_lxc.git/commit - src/python-lxc/lxc.c
python: Add binding for {get|set}_cgroup_item
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 7 Dec 2012 20:47:11 +0000 (15:47 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 10 Dec 2012 14:26:07 +0000 (09:26 -0500)
commitf4d3a9fddbacdd5279f042cc352425a0c01da2b6
tree1a8a2612a2f53b826694f01201d93283ecbf0b6f
parent703c562d2ee8572097135003964c7ca7931567c9
python: Add binding for {get|set}_cgroup_item

Updates the binding for the two new functions.

This also fixes some problems with the argument checking of
get_config_item that'd otherwise lead to a segfault.

The python binding for set_cgroup_item and get_cgroup_item are pretty
raw as lxc has little control over the cgroup entries.
That means that we don't try to interpret lists as we do for the config
entries.

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