Skip to content

Commit 3c67783

Browse files
SteveL-MSFTCopilot
andauthored
Update osinfo/src/config.rs
Co-authored-by: Copilot <[email protected]>
1 parent 8c85110 commit 3c67783

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

osinfo/src/config.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ impl OsInfo {
7272
family,
7373
version,
7474
architecture.as_deref().unwrap_or("")
75-
));
75+
let name = Some(
76+
match &architecture {
77+
Some(arch) => format!("{:?} {} {}", family, version, arch),
78+
None => format!("{:?} {}", family, version),
79+
}
80+
);
7681
Self {
7782
id: ID.to_string(),
7883
family,

0 commit comments

Comments
 (0)