Fix error message.

--HG--
extra : convert_revision : 7ac0f40595c89b0d9352e82e447d25380b038408
This commit is contained in:
Kevin Lim 2006-11-07 15:45:03 -05:00
parent 8ba73da056
commit ea5df46882

View file

@ -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()