]> git.proxmox.com Git - mirror_lxc.git/commit
python: Use builtin len() function for network interfaces
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 22 Nov 2012 23:01:40 +0000 (18:01 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 26 Nov 2012 17:32:50 +0000 (12:32 -0500)
commit2cdb945b1375d4d2fd7f1e01df6d39a54b10d82c
tree3754980f1ac903d6ad5e7fdc103d9c1d8fd05c4a
parentbde1853954e7e0a33fec872391c757933c063ae9
python: Use builtin len() function for network interfaces

Use our own len() function for network interfaces as doing
len(container.get_config_item("lxc.network")) will fail when the
list is empty.

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