update os-info os to name (#5265)

This commit is contained in:
Darren Schroeder 2022-04-20 17:36:39 -05:00 committed by GitHub
parent 18c9b62b00
commit d1cc70fc4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1250,7 +1250,7 @@ pub fn eval_variable(
output_vals.push(Value::int(pid as i64, span)); output_vals.push(Value::int(pid as i64, span));
let os_record = Value::Record { let os_record = Value::Record {
cols: vec!["os".into(), "arch".into(), "family".into()], cols: vec!["name".into(), "arch".into(), "family".into()],
vals: vec![ vals: vec![
Value::string(std::env::consts::OS, span), Value::string(std::env::consts::OS, span),
Value::string(std::env::consts::ARCH, span), Value::string(std::env::consts::ARCH, span),