Signed-off-by: Luyao Huang <lhuang(a)redhat.com>
---
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