Access to undefined variable.

Signed-off-by: Jiří Župka <[email protected]>
---
 client/virt/kvm_vm.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py
index 5df8719..619a5f9 100644
--- a/client/virt/kvm_vm.py
+++ b/client/virt/kvm_vm.py
@@ -405,6 +405,7 @@ class VM(virt_vm.BaseVM):
                 device_id = vm.device_id[vlan]
             except IndexError:
                 netdev_id = None
+                device_id = None
             # Handle the '-net nic' part
             try:
                 mac = vm.get_mac_address(vlan)
-- 
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to