def fact_timeout_check(self): """ Check if a fact is about to timeout """ LOGGER.debug("Query for expired facts") expired_resources = Fact.renew_facts(timeout = 60) for res_id in expired_resources: LOGGER.debug("Facts of resource %s expired, poll new facts" % res_id) self.poll_facts(str(res_id)) return