Skip to content

Commit

Permalink
fix sim builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjstone committed Oct 25, 2023
1 parent 396fdda commit 56a614f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sled-hardware/src/non_illumos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use crate::disk::{DiskError, DiskPaths, DiskVariant, Partition, UnparsedDisk};
use crate::disk::{
DiskPaths, DiskVariant, Partition, PooledDiskError, UnparsedDisk,
};
use crate::{Baseboard, SledMode};
use slog::Logger;
use std::collections::HashSet;
Expand All @@ -16,6 +18,7 @@ use tokio::sync::broadcast;
///
/// If you're actually trying to run the Sled Agent on non-illumos platforms,
/// use the simulated sled agent, which does not attempt to abstract hardware.
#[derive(Clone)]
pub struct HardwareManager {}

impl HardwareManager {
Expand Down Expand Up @@ -56,7 +59,7 @@ pub fn ensure_partition_layout(
_log: &Logger,
_paths: &DiskPaths,
_variant: DiskVariant,
) -> Result<Vec<Partition>, DiskError> {
) -> Result<Vec<Partition>, PooledDiskError> {
unimplemented!("Accessing hardware unsupported on non-illumos");
}

Expand Down

0 comments on commit 56a614f

Please sign in to comment.