File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1330,7 +1330,7 @@ impl ComputeRuntime {
13301330 // cancelled. Keep the creation guard until its public identity and
13311331 // protected launch bundle have been committed.
13321332 let prepared = async {
1333- if let Some(encoded) = launch_authentication {
1333+ if let Some(encoded) = runtime_inputs. launch_authentication {
13341334 let authentication = serde_json::from_slice(&encoded)
13351335 .map_err(|_| Status::internal("invalid sandbox launch authentication"))?;
13361336 let encoded = self
@@ -1365,7 +1365,7 @@ impl ComputeRuntime {
13651365 }
13661366 if let Some(spec) = driver_sandbox.spec.as_mut() {
13671367 spec.await_main_process_attachment = await_main_process_attachment;
1368- spec.launch_authentication = runtime_inputs. launch_authentication.unwrap_or_default();
1368+ spec.launch_authentication = launch_authentication.unwrap_or_default();
13691369 }
13701370 let result = Box::pin(self.await_provisioning_operation(
13711371 &sandbox,
@@ -8724,7 +8724,7 @@ mod tests {
87248724 version: 2,
87258725 ..Default::default()
87268726 });
8727- let launch_authentication = b"protected-launch-material".to_vec( );
8727+ let launch_authentication = test_launch_authentication(&sandbox );
87288728 runtime_inputs.launch_authentication = Some(launch_authentication.clone());
87298729
87308730 runtime
Original file line number Diff line number Diff line change @@ -3593,7 +3593,7 @@ pub(super) async fn resolve_sandbox_create_runtime_inputs(
35933593 provider_names,
35943594 )
35953595 .await?;
3596- let effective_policy = current_effective_policy_from_records(
3596+ let ( effective_policy, _) = current_effective_policy_from_records(
35973597 state,
35983598 &provider_profile_catalog,
35993599 sandbox,
Original file line number Diff line number Diff line change @@ -805,7 +805,9 @@ async fn run_sandbox_with_backend(
805805 #[ cfg( not( unix) ) ]
806806 let ssh_host_key = {
807807 if ssh_socket_path. is_some ( ) {
808- return Err ( miette:: miette!( "SSH access sockets are unsupported on this host" ) ) ;
808+ return Err ( miette:: miette!(
809+ "SSH access sockets are unsupported on this host"
810+ ) ) ;
809811 }
810812 None
811813 } ;
You can’t perform that action at this time.
0 commit comments