Fix showing of CPU Affinity by xm vcpu-list

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2008-05-19 09:46:02 +01:00
1 parent e70a0fa88c
commit a7b0dfd0b3
1 file changed
+1 -1
+1 -1
View File
@@ -1096,7 +1096,7 @@ def xm_vcpu_list(args):
# normalize cpumap by modulus nr_cpus, and drop duplicates
cpumap = dict.fromkeys(
map(lambda x: x % nr_cpus, cpumap)).keys()
filter(lambda x: x < nr_cpus, cpumap)).keys()
if len(cpumap) == nr_cpus:
return "any cpu"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.