Revision 1b54fc6c lib/cmdlib.py

b/lib/cmdlib.py
1381 1381
      result = self.rpc.call_upload_file(node_list,
1382 1382
                                         constants.SSH_KNOWN_HOSTS_FILE)
1383 1383
      for to_node, to_result in result.iteritems():
1384
        if to_result.failed or not to_result.data:
1385
          logging.error("Copy of file %s to node %s failed",
1386
                        constants.SSH_KNOWN_HOSTS_FILE, to_node)
1384
         msg = to_result.RemoteFailMsg()
1385
         if msg:
1386
           msg = ("Copy of file %s to node %s failed: %s" %
1387
                   (constants.SSH_KNOWN_HOSTS_FILE, to_node, msg))
1388
           self.proc.LogWarning(msg)
1387 1389

  
1388 1390
    finally:
1389 1391
      result = self.rpc.call_node_start_master(master, False)
......
1583 1585
    if os.path.exists(fname):
1584 1586
      result = lu.rpc.call_upload_file(dist_nodes, fname)
1585 1587
      for to_node, to_result in result.items():
1586
        if to_result.failed or not to_result.data:
1587
          logging.error("Copy of file %s to node %s failed", fname, to_node)
1588
         msg = to_result.RemoteFailMsg()
1589
         if msg:
1590
           msg = ("Copy of file %s to node %s failed: %s" %
1591
                   (fname, to_node, msg))
1592
           lu.proc.LogWarning(msg)
1588 1593

  
1589 1594

  
1590 1595
class LURedistributeConfig(NoHooksLU):

Also available in: Unified diff