def gather_facts_list(self, file):
        """
        Return a list of facts.
        """
        facts = []

        contents = utils.file_to_string(os.path.join(self.paths["role"],
                                        file))
        contents = re.sub(r"\s+", "", contents)
        matches = self.regex_facts.findall(contents)

        for match in matches:
            facts.append(match.split(":")[1])

        return facts
def gather_facts_list ( self , file ) : facts = [ ] contents = utils . file_to_string ( os . path . join ( self . paths [ "role" ] , file ) ) contents = re . sub ( r"\s+" , "" , contents ) matches = self . regex_facts . findall ( contents ) for match in matches : facts . append ( match . split ( ":" ) [ 1 ] ) return facts
Return a list of facts.