From 46090598ebbf50b592ba65cf59b0bd470e87b4ea Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 21 Nov 2021 15:30:52 -0800 Subject: [PATCH] apply-local: Fix output after rewrite --- src/command/apply_local.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/command/apply_local.rs b/src/command/apply_local.rs index 836429b..1286e85 100644 --- a/src/command/apply_local.rs +++ b/src/command/apply_local.rs @@ -137,7 +137,12 @@ pub async fn run(_global_args: &ArgMatches<'_>, local_args: &ArgMatches<'_>) -> deployment.set_options(options); - deployment.execute().await?; + let (deployment, output) = tokio::join!( + deployment.execute(), + output.run_until_completion(), + ); + + deployment?; output?; Ok(()) }