Fix ConfigWriter._DistributeConfig error handling
authorIustin Pop <iustin@google.com>
Wed, 10 Jun 2009 10:53:18 +0000 (12:53 +0200)
committerIustin Pop <iustin@google.com>
Wed, 10 Jun 2009 12:46:14 +0000 (14:46 +0200)
Commit 1b54fc6c2fd92b614c029cc5312d02f9f1526253 added a typo (due to
copy-paste) in the error handling path of this function.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

lib/config.py

index 2e3a4f2..7ebcf92 100644 (file)
@@ -1070,7 +1070,7 @@ class ConfigWriter:
       msg = to_result.RemoteFailMsg()
       if msg:
         msg = ("Copy of file %s to node %s failed: %s" %
-                (self._cfg_file, node, msg))
+               (self._cfg_file, to_node, msg))
         logging.error(msg)
         bad = True
     return not bad