'Get variables about a specific host'

def get_host_info(self, host):

    if ((not self.hosts) or (len(self.hosts) == 0)):
        self.load_hosts_from_cache()
    if (host not in self.hosts):
        if self.args.debug:
            print(('[%s]    not    found    in    cache.' % host))
        self.update_cache()
        if (host not in self.hosts):
            if self.args.debug:
                print(('[%s]    does    not    exist    after    cache    update.' % host))
            return self.json_format_dict({}, self.args.pretty)
    return self.json_format_dict(self.hosts[host], self.args.pretty)
