ACKed, thanks. ----- Original Message ----- From: "Luyao Huang" <lhuang@xxxxxxxxxx> To: libvir-list@xxxxxxxxxx Cc: "Luyao Huang" <lhuang@xxxxxxxxxx> Sent: Wednesday, April 22, 2015 9:00:57 PM Subject: [libvirt-test-api][PATCH 3/3] fix the logic in getDomainCapabilities 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 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list