def parse_into_fields(self, yaml_file): """Description""" # self.dn_fields contains parsed fields obtained from yaml file self.dn_fields = DATAutils.read_yaml_file(yaml_file) """Fill the fields with values. Put None if key not found""" self.title = self.dn_fields.get("title") self.author = self.dn_fields.get("author") self.description = self.dn_fields.get("description") self.loggingpolicy = self.dn_fields.get("loggingpolicy") self.mitigation_policy = self.dn_fields.get("mitigation_policy") self.platform = self.dn_fields.get("platform") self.type = self.dn_fields.get("type") self.channel = self.dn_fields.get("channel") self.provider = self.dn_fields.get("provider") self.fields = self.dn_fields.get("fields") self.sample = self.dn_fields.get("sample")
def parse_into_fields(self, yaml_file): """Description""" self.en_parsed_file = DATAutils.read_yaml_file(yaml_file)
def parse_into_fields(self, yaml_file): """Description""" # self.fields contains parsed fields obtained from yaml file self.fields = DATAutils.read_yaml_file(self.yaml_file)