From 7757a0e45db560cfa5d43c5c219c17bb0ca7ff57 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 4 Dec 2021 01:03:26 -0800 Subject: [PATCH] command/apply: Use verbose output when goal is "dry-activate" It doesn't make sense to use the spinners since you can't see the full output from the activation script. Fixes #44. --- src/command/apply.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/command/apply.rs b/src/command/apply.rs index edc9e8c..b03e559 100644 --- a/src/command/apply.rs +++ b/src/command/apply.rs @@ -128,7 +128,8 @@ pub async fn run(_global_args: &ArgMatches<'_>, local_args: &ArgMatches<'_>) -> let targets = hive.select_nodes(filter, ssh_config, goal.requires_target_host()).await?; let n_targets = targets.len(); - let mut output = SimpleProgressOutput::new(local_args.is_present("verbose")); + let verbose = local_args.is_present("verbose") || goal == Goal::DryActivate; + let mut output = SimpleProgressOutput::new(verbose); let progress = output.get_sender(); let mut deployment = Deployment::new(hive, targets, goal, progress);