def METHOD_NAME(self, content):
    a_content = get_active_lines(content)
    if not a_content:
        raise ParseException("mongod.conf is empty or all lines are comments")
    self.is_yaml = self._file_type_is_yaml(a_content)
    try:
        if self.is_yaml:
            self.data = yaml.safe_load('\n'.join(content))
        else:
            self.data = split_kv_pairs(content, use_partition=True)
    except Exception as e:
        raise ParseException('mongod conf parse failed: %s', e)