mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
fix integration not using all passed options
This commit is contained in:
parent
cead37fae7
commit
8941c697fb
2 changed files with 3 additions and 20 deletions
22
src/main.rs
22
src/main.rs
|
|
@ -269,26 +269,8 @@ async fn main() -> Result<ExitCode> {
|
|||
return Ok(result.into());
|
||||
}
|
||||
HazeArgs::Integration { options, mut args } => {
|
||||
let cloud = Cloud::create(&docker, options, &config).await?;
|
||||
println!("Waiting for servers to start");
|
||||
cloud.wait_for_start(&docker).await?;
|
||||
println!("Installing");
|
||||
if let Err(e) = cloud
|
||||
.exec(
|
||||
&docker,
|
||||
vec![
|
||||
"install",
|
||||
&config.auto_setup.username,
|
||||
&config.auto_setup.password,
|
||||
],
|
||||
false,
|
||||
Vec::<String>::default(),
|
||||
)
|
||||
.await
|
||||
{
|
||||
cloud.destroy(&docker).await?;
|
||||
return Err(e);
|
||||
}
|
||||
let cloud = setup(&docker, options, &config).await?;
|
||||
|
||||
args.insert(0, "integration".to_string());
|
||||
cloud.exec(&docker, args, false, get_forward_env()).await?;
|
||||
cloud.destroy(&docker).await?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue