[libvirt-test-api][PATCH 3/3] fix the logic in getDomainCapabilities

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

 



Signed-off-by: Luyao Huang <lhuang@xxxxxxxxxx>
---
 repos/virconn/connection_getDomainCapabilities.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/repos/virconn/connection_getDomainCapabilities.py b/repos/virconn/connection_getDomainCapabilities.py
index f0cfa1f..566d3ed 100644
--- a/repos/virconn/connection_getDomainCapabilities.py
+++ b/repos/virconn/connection_getDomainCapabilities.py
@@ -228,9 +228,7 @@ def check_os(arch, logger):
     ovmf1 =  os.getElementsByTagName('value')[0]
     ovmf1 = ovmf1.childNodes[0].data
     logger.debug("Got OVMF path is %s" % ovmf1)
-    if ovmf_f and ovmf1 == OVMF:
-        pass
-    else:
+    if ovmf_f and ovmf1 != OVMF:
         return False
     enum = loader.getElementsByTagName('enum')
     for item in enum:
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]