xen: remove the config file after migration
authorIustin Pop <iustin@google.com>
Tue, 24 Jun 2008 09:46:35 +0000 (09:46 +0000)
committerIustin Pop <iustin@google.com>
Tue, 24 Jun 2008 09:46:35 +0000 (09:46 +0000)
commit9fd12df2d8e78f47b4602b142a061ac187aa5198
treedf776b43b5588acb53123ddee8fb942e6d97cee6
parent1b64229c295ef5cc06a7c20ef2c2a870c7a09e56
xen: remove the config file after migration

Since it's not good to have the instance definition file left on the
source one if the migration succeeded, we remove it after the ‘xm
migrate’ call.

In order to do this using the existing self._RemoveConfigFile, we change
the protocol for this method to take the instance name and not instance
object as parameter, as in the migration we don't have the instance
object (and the only other caller is cheap to modify).

Reviewed-by: imsnah
lib/hypervisor.py