diff mbox

KVM-test: SR-IOV: fix a bug that misplaced parameters location

Message ID 1265616327-5830-1-git-send-email-yzhou@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yolkfull Chow Feb. 8, 2010, 8:05 a.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py
index 08af99b..cdf2a00 100644
--- a/client/tests/kvm/kvm_utils.py
+++ b/client/tests/kvm/kvm_utils.py
@@ -1089,15 +1089,14 @@  class PciAssignable(object):
 
                 for content, file in info_write_to_files:
                     try:
-                        utils.open_write_close(content, file)
+                        utils.open_write_close(file, content)
                     except IOError:
                         logging.debug("Failed to write %s to file %s" %
                                       (content, file))
                         continue
 
                 if not self.is_binded_to_stub(full_id):
-                    logging.error("Binding device %s to stub failed" %
-                                  pci_id)
+                    logging.error("Binding device %s to stub failed" % pci_id)
                     continue
             else:
                 logging.debug("Device %s already binded to stub" % pci_id)