adjust change field name from output to details in rule file #337

This commit is contained in:
DustInDark
2021-12-22 18:15:34 +09:00
parent 67f0ee007b
commit 98a6ca8adc
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ pub fn after_fact() {
let mut displayflag = false; let mut displayflag = false;
let mut target: Box<dyn io::Write> = let mut target: Box<dyn io::Write> =
if let Some(csv_path) = configs::CONFIG.read().unwrap().args.value_of("output") { if let Some(csv_path) = configs::CONFIG.read().unwrap().args.value_of("details") {
// ファイル出力する場合 // ファイル出力する場合
match File::create(csv_path) { match File::create(csv_path) {
Ok(file) => Box::new(BufWriter::new(file)), Ok(file) => Box::new(BufWriter::new(file)),

View File

@@ -187,7 +187,7 @@ impl Detection {
.unwrap_or("-".to_owned()) .unwrap_or("-".to_owned())
.to_string(), .to_string(),
rule.yaml["title"].as_str().unwrap_or("").to_string(), rule.yaml["title"].as_str().unwrap_or("").to_string(),
rule.yaml["output"].as_str().unwrap_or("").to_string(), rule.yaml["details"].as_str().unwrap_or("").to_string(),
); );
} }