KVM-test: SR-IOV: fix a bug that misplaced parameters location
PATCH 1/1 KVM-test: SR-IOV: fix a bug that misplaced parameters location
Reverse both parameters of utils.open_write_close() that was misplaced.
Signed-off-by Yolkfull Chow <[email protected]>
--- client/tests/kvm/kvm_utils.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
client/tests/kvm/kvm_utils.py +2 -3
@@ -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)
Signature · 1 line
1.6.6