Add flag for limit execution to specific remote hosts (fix #491) (#492)

This commit is contained in:
Roey Darwish Dror
2020-08-02 06:29:16 +03:00
committed by GitHub
parent 43be5bd7da
commit be631c663e
4 changed files with 16 additions and 1 deletions

View File

@@ -113,7 +113,7 @@ fn run() -> Result<()> {
runner.execute(Step::Wsl, "WSL", || windows::run_wsl_topgrade(run_type))?;
if let Some(topgrades) = config.remote_topgrades() {
for remote_topgrade in topgrades {
for remote_topgrade in topgrades.iter().filter(|t| config.should_execute_remote(t)) {
runner.execute(Step::Remotes, format!("Remote ({})", remote_topgrade), || {
generic::run_remote_topgrade(&ctx, remote_topgrade)
})?;