Bertrand Chenal hace 7 años
padre
commit
85931c2344
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      baker.py

+ 4 - 1
baker.py

@@ -487,7 +487,10 @@ def run_remote(task, host, env, cli):
     env.update({
         'host': host,
     })
-    client = connect(host, cli.cfg.auth)
+    if cli.dry_run:
+        client = None
+    else:
+        client = connect(host, cli.cfg.auth)
     if task.run:
         cmd = env.fmt(task.run)
         logger.info(env.fmt('{host}: {task_desc}'))