mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-26 17:25:22 +03:00
capabilities: Handle xen outputting os_type=linux
F22 libxl xen still puts old style type=linux in the XML, so we need to handle it for caps lookup
This commit is contained in:
parent
028ec70fe7
commit
f73a7e69a4
@ -468,6 +468,11 @@ class Capabilities(XMLBuilder):
|
||||
|
||||
@returns: A _CapsInfo object containing the found guest and domain
|
||||
"""
|
||||
# F22 libxl xen still puts type=linux in the XML, so we need
|
||||
# to handle it for caps lookup
|
||||
if os_type == "linux":
|
||||
os_type = "xen"
|
||||
|
||||
guest = self._guestForOSType(os_type, arch)
|
||||
if not guest:
|
||||
archstr = _("for arch '%s'") % arch
|
||||
|
Loading…
Reference in New Issue
Block a user