forked from DGNum/colmena
deployment: Pass job to host during upload_keys
This commit is contained in:
parent
2efa8d26c1
commit
715e10561b
1 changed files with 2 additions and 1 deletions
|
@ -434,12 +434,13 @@ impl Deployment {
|
|||
) -> ColmenaResult<()> {
|
||||
let nodes = vec![target.name.clone()];
|
||||
let job = parent.create_job(JobType::UploadKeys, nodes)?;
|
||||
job.run(|_| async move {
|
||||
job.run(|job| async move {
|
||||
if target.host.is_none() {
|
||||
return Err(ColmenaError::Unsupported);
|
||||
}
|
||||
|
||||
let host = target.host.as_mut().unwrap();
|
||||
host.set_job(Some(job));
|
||||
host.upload_keys(&target.config.keys, true).await?;
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue