From 6247212dc79bf773d08f885ce4739936b565124a Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 26 Feb 2014 10:20:16 -0300 Subject: [PATCH] fix feature --- driver.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/driver.py b/driver.py index a707256..be3b19a 100644 --- a/driver.py +++ b/driver.py @@ -4096,8 +4096,11 @@ class LibvirtDriver(driver.ComputeDriver): cpu.sockets = info['topology']['sockets'] cpu.cores = info['topology']['cores'] cpu.threads = info['topology']['threads'] + tmp_list = list() for f in info['features']: - cpu.add_feature(vconfig.LibvirtConfigCPUFeature(f)) + if f not in tmp_list: + cpu.add_feature(vconfig.LibvirtConfigCPUFeature(f)) + tmp_list.append(f) u = "http://libvirt.org/html/libvirt-libvirt.html#virCPUCompareResult" m = _("CPU doesn't have compatibility.\n\n%(ret)s\n\nRefer to %(u)s") -- 1.9.0