Skip to content

Commit

Permalink
type fix for Baseboard
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjstone committed Mar 7, 2024
1 parent 332832e commit e9167a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nexus/db-model/src/sled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use super::{ByteCount, Generation, SledState, SqlU16, SqlU32};
use crate::collection::DatastoreCollectionConfig;
use crate::ipv6;
use crate::schema::{physical_disk, service, sled, zpool};
use crate::sled::shared::Baseboard;
use crate::sled_policy::DbSledPolicy;
use chrono::{DateTime, Utc};
use db_macros::Asset;
Expand Down Expand Up @@ -143,9 +144,9 @@ impl From<Sled> for params::SledAgentInfo {
Self {
sa_address: sled.address(),
role,
baseboard: params::Baseboard {
serial_number: sled.serial_number.clone(),
part_number: sled.part_number.clone(),
baseboard: Baseboard {
serial: sled.serial_number.clone(),
part: sled.part_number.clone(),
revision: sled.revision,
},
usable_hardware_threads: sled.usable_hardware_threads.into(),
Expand Down

0 comments on commit e9167a8

Please sign in to comment.