TLMigrateInstance: Fix live migration breakage
authorApollon Oikonomopoulos <apollon@noc.grnet.gr>
Thu, 5 May 2011 08:26:27 +0000 (11:26 +0300)
committerIustin Pop <iustin@google.com>
Thu, 5 May 2011 09:41:26 +0000 (11:41 +0200)
commit54bd7d7661278f35561f2be83f7fe8779723cdaf
treeacb0d51c2ca995b9850d5e79afd266bc42180d7f
parent46c936d637d863809b7dc95a49c587adc833b2d9
TLMigrateInstance: Fix live migration breakage

Commit 77fcff4 unintentionally incorporated code from
TLMigrateInstance.CheckPrereq into TLMigrateInstance._RunAllocator, presumably
during a rebase from earlier versions of the patch to the 2.5 codebase. As a
result all migrations running without an iallocator were performed non-live :-(

This patch moves the affected code back to CheckPrereq.

Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py