Skip to content

Commit 412b718

Browse files
committed
fix(mxc): unblock Windows validation
Signed-off-by: Shailendra Singh <[email protected]>
1 parent 835902b commit 412b718

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎crates/openshell-driver-mxc/src/driver.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ impl MxcComputeBackend {
841841
}
842842
}
843843

844-
fn validate_sandbox_fields(&self, sandbox: &DriverSandbox) -> Result<(), tonic::Status> {
844+
fn validate_sandbox_fields(sandbox: &DriverSandbox) -> Result<(), tonic::Status> {
845845
if let Some(spec) = &sandbox.spec {
846846
if effective_driver_gpu_count(driver_gpu_requirements(
847847
spec.resource_requirements.as_ref(),
@@ -884,7 +884,7 @@ impl MxcComputeBackend {
884884
}
885885

886886
pub fn validate_sandbox_create(&self, sandbox: &DriverSandbox) -> Result<(), tonic::Status> {
887-
self.validate_sandbox_fields(sandbox)?;
887+
Self::validate_sandbox_fields(sandbox)?;
888888
let policy = sandbox.spec.as_ref().and_then(|spec| spec.policy.as_ref());
889889
let egress_addr = governed_egress_addr(&self.config, policy)?;
890890
self.map_sandbox_policy(&sandbox.id, policy, egress_addr)?;
@@ -915,7 +915,7 @@ impl MxcComputeBackend {
915915
.remove(&sandbox_id);
916916
validate_provider_child_env_keys(provider_credentials.as_ref())?;
917917

918-
self.validate_sandbox_fields(sandbox)?;
918+
Self::validate_sandbox_fields(sandbox)?;
919919
let sandbox_config = sandbox_config(sandbox)?;
920920
let policy = sandbox.spec.as_ref().and_then(|spec| spec.policy.as_ref());
921921
let (egress_addr, reserved_proxy_listener) = match governed_egress_addr(

‎mise.lock‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)