'Get the distro if the :attr:`CHECK_FILE` is set and has content'

def name_for_file_contains(self):

    if self.check_name_for_file_contains():
        if os.path.exists(self.CHECK_FILE):
            for line in open(self.CHECK_FILE).readlines():
                if (self.CHECK_FILE_CONTAINS in line):
                    return self.CHECK_FILE_DISTRO_NAME
