Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
virt-manager.12547
a9b303fb-fix-copy-host-cpu-definition.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File a9b303fb-fix-copy-host-cpu-definition.patch of Package virt-manager.12547
Subject: virtinst.cpu: fix copy host cpu definition From: Pavel Hrdina phrdina@redhat.com Tue Jul 14 15:53:25 2015 +0200 Date: Tue Jul 14 11:53:02 2015 -0400: Git: a9b303fb141df5b2d2051c6b4ed489dbb09952f8 Commit cac4ac14 updated cpu features to use XMLBuilder and this change removes the 'Features' class. There is no longer any '.names()' method to return names, so just cycle through all features and use a name attribute instead. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1240938 Signed-off-by: Pavel Hrdina <phrdina@redhat.com> diff --git a/virtinst/cpu.py b/virtinst/cpu.py index b12fd30..fb17bb7 100644 --- a/virtinst/cpu.py +++ b/virtinst/cpu.py @@ -104,8 +104,8 @@ class CPU(XMLBuilder): for feature in self.features: self.remove_feature(feature) - for name in cpu.features.names(): - self.add_feature(name) + for feature in cpu.features: + self.add_feature(feature.name) def vcpus_from_topology(self): """
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor