mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
Fixed Checking KVM
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import re
|
||||
import random
|
||||
import libxml2
|
||||
import libvirt
|
||||
|
||||
|
||||
def is_kvm_available(xml):
|
||||
capabilites = re.search('kvm', xml)
|
||||
if capabilites:
|
||||
kvm_domains = get_xml_path(xml, "//domain/@type='kvm'")
|
||||
if kvm_domains > 0:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user