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.
This commit is contained in:
parent
7b1feffb9e
commit
7757a0e45d
1 changed files with 2 additions and 1 deletions
|
@ -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 targets = hive.select_nodes(filter, ssh_config, goal.requires_target_host()).await?;
|
||||||
let n_targets = targets.len();
|
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 progress = output.get_sender();
|
||||||
|
|
||||||
let mut deployment = Deployment::new(hive, targets, goal, progress);
|
let mut deployment = Deployment::new(hive, targets, goal, progress);
|
||||||
|
|
Loading…
Reference in a new issue