Skip to content

Commit

Permalink
fixup! fixup! feat: add system info to upload metadata runner property
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia committed Jul 24, 2024
1 parent a07ae75 commit b8c3712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/run/check_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl SystemInfo {
}

impl SystemInfo {
fn create() -> Result<Self> {
fn new() -> Result<Self> {
let os = System::name().ok_or(anyhow!("Failed to get OS name"))?;
let os_version = System::os_version().ok_or(anyhow!("Failed to get OS version"))?;
let arch = System::cpu_arch().ok_or(anyhow!("Failed to get CPU architecture"))?;
Expand All @@ -66,7 +66,7 @@ impl SystemInfo {
/// - Debian 11 on x86_64
/// - Debian 12 on x86_64
pub fn check_system() -> Result<SystemInfo> {
let system_info = SystemInfo::create()?;
let system_info = SystemInfo::new()?;
debug!("System info: {:#?}", system_info);

match (system_info.os.as_str(), system_info.os_version.as_str()) {
Expand Down

0 comments on commit b8c3712

Please sign in to comment.