def wait_for_live_migration():
    'waiting for live migration completion.'
    try:
        self.get_info(instance)['state']
    except exception.InstanceNotFound:
        timer.stop()
        post_method(context, instance, dest, block_migration, migrate_data)
waiting for live migration completion.
def wait_for_live_migration():
    
    try:
        self.get_info(instance)['state']
    except exception.InstanceNotFound:
        timer.stop()
        post_method(context, instance, dest, block_migration, migrate_data)