Fix error message.
--HG-- extra : convert_revision : 7ac0f40595c89b0d9352e82e447d25380b038408
This commit is contained in:
parent
8ba73da056
commit
ea5df46882
1 changed files with 2 additions and 2 deletions
|
@ -171,10 +171,10 @@ def switchCpus(cpuList):
|
||||||
|
|
||||||
for cpu in old_cpus:
|
for cpu in old_cpus:
|
||||||
if not isinstance(cpu, objects.BaseCPU):
|
if not isinstance(cpu, objects.BaseCPU):
|
||||||
raise TypeError, "%s is not of type BaseCPU", cpu
|
raise TypeError, "%s is not of type BaseCPU" % cpu
|
||||||
for cpu in new_cpus:
|
for cpu in new_cpus:
|
||||||
if not isinstance(cpu, objects.BaseCPU):
|
if not isinstance(cpu, objects.BaseCPU):
|
||||||
raise TypeError, "%s is not of type BaseCPU", cpu
|
raise TypeError, "%s is not of type BaseCPU" % cpu
|
||||||
|
|
||||||
# Drain all of the individual CPUs
|
# Drain all of the individual CPUs
|
||||||
drain_event = cc_main.createCountedDrain()
|
drain_event = cc_main.createCountedDrain()
|
||||||
|
|
Loading…
Reference in a new issue