(cr, global_configs, i, printer, p)
| 378 | return 0 |
| 379 | |
| 380 | def execute_pass(cr, global_configs, i, printer, p): |
| 381 | loop = 1 if "loop" not in p.keys() else int(p["loop"]) |
| 382 | for i in range(loop): |
| 383 | cmd = "%s -loop=%d" % (p["cmd"], i) if loop > 1 else p["cmd"] |
| 384 | res = cr.execute_w_channel(cmd + " " + global_configs, |
| 385 | p["host"], |
| 386 | p["path"], |
| 387 | order=get_order(p)) |
| 388 | printer.append(RunPrinter(p["host"], res, get_order(p))) |
| 389 | |
| 390 | def main(): |
| 391 | global use_ssh_config |
no test coverage detected