'Gets information about a specific host from local cache'

def get_host_info(self, hostname):

    if (hostname in self.inventory['_meta']['hostvars']):
        return self.inventory['_meta']['hostvars'][hostname]
    else:
        return {}
