Skip to content

Commit

Permalink
Also add origin field to report
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Feb 22, 2024
1 parent 99399f8 commit faa4822
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/engine/sim_engine/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ impl<'a> Into<Value> for &'a SimFilesystem {
.unwrap_or_else(|| "Not set".to_string()),
),
);
json.insert(
"origin".to_string(),
Value::from(
self.origin
.as_ref()
.map(|v| v.to_string())
.unwrap_or_else(|| "Not set".to_string()),
),
);
Value::from(json)
}
}
9 changes: 9 additions & 0 deletions src/engine/strat_engine/thinpool/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,15 @@ impl<'a> Into<Value> for &'a StratFilesystem {
.unwrap_or_else(|| "Not set".to_string()),
),
);
json.insert(
"origin".to_string(),
Value::from(
self.origin
.as_ref()
.map(|v| v.to_string())
.unwrap_or_else(|| "Not set".to_string()),
),
);
Value::from(json)
}
}

0 comments on commit faa4822

Please sign in to comment.