'Fetch all host facts of the host'

def _get_facts(self, host):

    if (not self.want_facts):
        return {}
    ret = self._get_facts_by_id(host['id'])
    if (len(ret.values()) == 0):
        facts = {}
    elif (len(ret.values()) == 1):
        facts = list(ret.values())[0]
    else:
        raise ValueError(("More    than    one    set    of    facts    returned    for    '%s'" % host))
    return facts
