Skip to content

Commit 2fdb6ec

Browse files
committed
fix(windows): omit Unix guest TLS paths
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent bdecb16 commit 2fdb6ec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎crates/openshell-server/src/compute/driver_config.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,22 @@
1111
pub mod builtin;
1212

1313
use crate::config_file;
14+
#[cfg(not(target_os = "windows"))]
1415
use crate::defaults::LocalTlsPaths;
1516
use openshell_core::{Error, Result};
1617
use serde::Deserialize;
1718
use std::collections::BTreeMap;
1819
use std::path::PathBuf;
1920

2021
#[derive(Debug, Clone, PartialEq, Eq)]
22+
#[cfg(not(target_os = "windows"))]
2123
pub struct GuestTlsPaths {
2224
ca: PathBuf,
2325
cert: PathBuf,
2426
key: PathBuf,
2527
}
2628

29+
#[cfg(not(target_os = "windows"))]
2730
impl From<&LocalTlsPaths> for GuestTlsPaths {
2831
fn from(paths: &LocalTlsPaths) -> Self {
2932
Self {

0 commit comments

Comments
 (0)