'Set the host field on the DB to our own when we are clustered.'

def _set_resource_host(self, resource):

    if (resource.is_clustered and (not vol_utils.hosts_are_equivalent(resource.host, self.host))):
        pool = vol_utils.extract_host(resource.host, 'pool')
        resource.host = vol_utils.append_host(self.host, pool)
        resource.save()
