'Determine host\'s goodness rating based on a goodness_function.'

def _weigh_object(self, host_state, weight_properties):

    stats = self._generate_stats(host_state, weight_properties)
    LOG.debug("Checking    host    '%s'", stats['host_stats']['host'])
    result = self._check_goodness_function(stats)
    LOG.debug('Goodness:    %s', result)
    LOG.debug("Done    checking    host    '%s'", stats['host_stats']['host'])
    return result
