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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reverse both parameters of utils.open_write_close() that was misplaced.

Signed-off-by: Yolkfull Chow <yzhou@xxxxxxxxxx>
---
 client/tests/kvm/kvm_utils.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

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)
-- 
1.6.6

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

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux