public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm-autotest: kvm_vm.py get values from nic_params dict
@ 2009-04-03  0:28 Ryan Harper
  0 siblings, 0 replies; only message in thread
From: Ryan Harper @ 2009-04-03  0:28 UTC (permalink / raw)
  To: Uri Lublin; +Cc: kvm

Looks like cut-n-paste error.  We should be fetching values from
nic_params, not image params.

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh@us.ibm.com


diffstat output:
 kvm_vm.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
---
diff --git a/client/tests/kvm_runtest_2/kvm_vm.py b/client/tests/kvm_runtest_2/kvm_vm.py
index 2e6599e..5136a26 100644
--- a/client/tests/kvm_runtest_2/kvm_vm.py
+++ b/client/tests/kvm_runtest_2/kvm_vm.py
@@ -189,8 +189,8 @@ class VM:
         for nic_name in kvm_utils.get_sub_dict_names(params, "nics"):
             nic_params = kvm_utils.get_sub_dict(params, nic_name)
             qemu_cmd += " -net nic,vlan=%d" % vlan
-            if image_params.get("nic_model"):
-                qemu_cmd += ",model=%s" % image_params.get("nic_model")
+            if nic_params.get("nic_model"):
+                qemu_cmd += ",model=%s" % nic_params.get("nic_model")
             qemu_cmd += " -net user,vlan=%d" % vlan
             vlan += 1
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-03  0:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-03  0:28 [PATCH] kvm-autotest: kvm_vm.py get values from nic_params dict Ryan Harper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox