Revision 64c7b383 lib/backend.py

b/lib/backend.py
520 520
      what[constants.NV_FILELIST])
521 521

  
522 522
  if constants.NV_NODELIST in what:
523
    result[constants.NV_NODELIST] = tmp = {}
524
    random.shuffle(what[constants.NV_NODELIST])
525
    for node in what[constants.NV_NODELIST]:
523
    (nodes, bynode) = what[constants.NV_NODELIST]
524

  
525
    # Add nodes from other groups (different for each node)
526
    try:
527
      nodes.extend(bynode[my_name])
528
    except KeyError:
529
      pass
530

  
531
    # Use a random order
532
    random.shuffle(nodes)
533

  
534
    # Try to contact all nodes
535
    val = {}
536
    for node in nodes:
526 537
      success, message = _GetSshRunner(cluster_name).VerifyNodeHostname(node)
527 538
      if not success:
528
        tmp[node] = message
539
        val[node] = message
540

  
541
    result[constants.NV_NODELIST] = val
529 542

  
530 543
  if constants.NV_NODENETTEST in what:
531 544
    result[constants.NV_NODENETTEST] = tmp = {}

Also available in: Unified diff