We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a02de4 + 6295969 commit 715e92aCopy full SHA for 715e92a
src/deploy.rs
@@ -363,7 +363,7 @@ pub async fn deploy_profile(
363
let (send_activate, recv_activate) = tokio::sync::oneshot::channel();
364
let (send_activated, recv_activated) = tokio::sync::oneshot::channel();
365
366
- tokio::spawn(async move {
+ let thread = tokio::spawn(async move {
367
let o = ssh_activate.wait_with_output().await;
368
369
let maybe_err = match o {
@@ -399,6 +399,10 @@ pub async fn deploy_profile(
399
let c = confirm_profile(deploy_data, deploy_defs, temp_path, &ssh_addr).await;
400
recv_activated.await.unwrap();
401
c?;
402
+
403
+ thread
404
+ .await
405
+ .map_err(|x| DeployProfileError::SSHActivate(x.into()))?;
406
}
407
408
Ok(())
0 commit comments