Skip to content

Commit

Permalink
illumos fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallagher committed Oct 17, 2023
1 parent 53e0654 commit 2670d92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wicketd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mod preflight_check;
mod rss_config;
mod update_tracker;

use anyhow::{anyhow, bail, Result};
use anyhow::{anyhow, Result};
use artifacts::{WicketdArtifactServer, WicketdArtifactStore};
use bootstrap_addrs::BootstrapPeers;
pub use config::Config;
Expand Down Expand Up @@ -106,12 +106,12 @@ impl SmfConfigValues {
})?
};

Ok(Some(Self { address, rack_subnet }))
Ok(Self { address, rack_subnet })
}

#[cfg(not(target_os = "illumos"))]
pub fn read_current() -> Result<Self> {
bail!("reading SMF config only available on illumos")
Err(anyhow!("reading SMF config only available on illumos"))
}
}

Expand Down

0 comments on commit 2670d92

Please sign in to comment.