]> git.proxmox.com Git - mirror_lxc.git/commit
python: Various fixes to the python scripts
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 18 Apr 2013 20:20:53 +0000 (22:20 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 18 Apr 2013 20:37:10 +0000 (22:37 +0200)
commit6c5db2af1f706e8f21f2a5f074bada96e9011052
treec6525d7ec217c4188925debf8e069661fdbccc63
parent2ebec36f271d4ee943281e32feb3552745115347
python: Various fixes to the python scripts

This fixes a few issues uncovered by the recent C module fix.

In lxc-start-ephemeral, the hwaddr code wasn't actually working.
Replace by code that properly iterates through the network interfaces
and sets a new MAC address for each entry.

In the python overlay, catch the newly emitted KeyError when in
set_config_item (or setting any previously unset variable would fail).

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