Mark Wu has uploaded a new change for review.

Change subject: Fix a bug in the naming convertion of cpu feature 'sse4_x'
......................................................................

Fix a bug in the naming convertion of cpu feature 'sse4_x'

The list slice opertion missed the last character. It caused
the feature name couldn't get chance to be converted into
libvirt's naming.

Change-Id: Ia241b09c96fa16441ba9421f61a2f9a417f0d978
Signed-off-by: Mark Wu <[email protected]>
---
M vdsm/libvirtvm.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/13/8413/1

diff --git a/vdsm/libvirtvm.py b/vdsm/libvirtvm.py
index 64a3b6b..bd43b56 100644
--- a/vdsm/libvirtvm.py
+++ b/vdsm/libvirtvm.py
@@ -735,7 +735,7 @@
 
         for feature in features[1:]:
             # convert Linux name of feature to libvirt
-            if feature[1:5] == 'sse4_':
+            if feature[1:6] == 'sse4_':
                 feature = feature[0] + 'sse4.' + feature[6:]
 
             f = self.doc.createElement('feature')


--
To view, visit http://gerrit.ovirt.org/8413
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia241b09c96fa16441ba9421f61a2f9a417f0d978
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Mark Wu <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to