Change in vdsm[master]: ppc64le: Fix CPU map parsing

mpolednik at redhat.com mpolednik at redhat.com
Mon Jun 8 11:17:42 UTC 2015


Martin Polednik has uploaded a new change for review.

Change subject: ppc64le: Fix CPU map parsing
......................................................................

ppc64le: Fix CPU map parsing

There is inconsistency in the platform naming: ppc64 in cpumap is used
for ppc64le platform. This patch fixes the caps logic, returning
correct model in cpuFlags.

Change-Id: I5d7762d23118149ec47a962110bfecc66b9ead57
Signed-off-by: Martin Polednik <mpolednik at redhat.com>
---
M vdsm/caps.py
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/37/42037/1

diff --git a/vdsm/caps.py b/vdsm/caps.py
index 60f7161..3304ad1 100644
--- a/vdsm/caps.py
+++ b/vdsm/caps.py
@@ -408,6 +408,11 @@
     # must be used
     if arch == Architecture.X86_64:
         arch = 'x86'
+
+    # Same goes for ppc64le
+    if arch == Architecture.PPC64LE:
+        arch = 'ppc64'
+
     architectureElement = None
 
     architectureElements = cpu_map.findall('arch')


-- 
To view, visit https://gerrit.ovirt.org/42037
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5d7762d23118149ec47a962110bfecc66b9ead57
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Polednik <mpolednik at redhat.com>


More information about the vdsm-patches mailing list