mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-14 00:58:28 +03:00
osxml: detect all pseries machine types
For example the machine type could be "pseries-<host-os-version>". Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
cce1f89a34
commit
466bf929ea
@ -69,7 +69,7 @@ class OSXML(XMLBuilder):
|
||||
def is_ppc64(self):
|
||||
return self.arch == "ppc64" or self.arch == "ppc64le"
|
||||
def is_pseries(self):
|
||||
return self.is_ppc64() and self.machine == "pseries"
|
||||
return self.is_ppc64() and str(self.machine).startswith("pseries")
|
||||
|
||||
def is_s390x(self):
|
||||
return self.arch == "s390x"
|
||||
|
Loading…
x
Reference in New Issue
Block a user