def get_instance_path_at_destination(instance, migrate_data=None):
 instance_relative_path = None
 if migrate_data:
  instance_relative_path = migrate_data.instance_relative_path
 if instance_relative_path:
  instance_dir = os.path.join(CONF.instances_path, instance_relative_path)
 else:
  instance_dir = get_instance_path(instance)
 return instance_dir

def get_instance_path_at_destination ( instance , migrate_data = None ) : instance_relative_path = None if migrate_data : instance_relative_path = migrate_data . instance_relative_path if instance_relative_path : instance_dir = os . path . join ( CONF . instances_path , instance_relative_path ) else : instance_dir = get_instance_path ( instance ) return instance_dir
get the instance path on destination node while live migration .