Bertrand Chenal %!s(int64=7) %!d(string=hai) anos
pai
achega
85931c2344
Modificáronse 1 ficheiros con 4 adicións e 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}'))