Message ID | 1304085561-4774-2-git-send-email-jzupka@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, 2011-04-29 at 15:59 +0200, Ji?í Župka wrote: > Access to undefined variable. Applied, thanks! > Signed-off-by: Ji?í Župka <jzupka@redhat.com> > --- > 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) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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)
Access to undefined variable. Signed-off-by: Ji?í Župka <jzupka@redhat.com> --- client/virt/kvm_vm.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)