From patchwork Fri Apr 29 13:59:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jiri Zupka X-Patchwork-Id: 741151 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3TDxZOb028038 for ; Fri, 29 Apr 2011 13:59:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758775Ab1D2N7b (ORCPT ); Fri, 29 Apr 2011 09:59:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56730 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758736Ab1D2N7a (ORCPT ); Fri, 29 Apr 2011 09:59:30 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3TDxTu1008125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 29 Apr 2011 09:59:29 -0400 Received: from jzupka.local ([10.3.112.17]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p3TDxObj014199; Fri, 29 Apr 2011 09:59:27 -0400 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=BDupka?= To: kvm-autotest@redhat.com, kvm@vger.kernel.org, autotest@test.kernel.org, lmr@redhat.com, ldoktor@redhat.com, akong@redhat.com Cc: jzupka@redhat.com Subject: [AUTOTEST][KVM] [PATCH 1/2] Repair bug of creating kvm guest machine. Date: Fri, 29 Apr 2011 15:59:20 +0200 Message-Id: <1304085561-4774-2-git-send-email-jzupka@redhat.com> In-Reply-To: <1304085561-4774-1-git-send-email-jzupka@redhat.com> References: <1304085561-4774-1-git-send-email-jzupka@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 29 Apr 2011 13:59:35 +0000 (UTC) Access to undefined variable. Signed-off-by: Ji?í Župka --- 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)