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:
Pavel Hrdina 2015-07-22 14:47:39 +02:00 committed by Giuseppe Scrivano
parent cce1f89a34
commit 466bf929ea

View File

@ -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"