Revision bc57fa8d lib/cli.py

b/lib/cli.py
2872 2872

  
2873 2873
  # This ensures we're running on the master daemon
2874 2874
  cl = GetClient()
2875
  # Query client
2876
  qcl = GetClient(query=True)
2875 2877

  
2876 2878
  (cluster_name, master_node) = \
2877 2879
    cl.QueryConfigValues(["cluster_name", "master_node"])
2878 2880

  
2879
  online_nodes = GetOnlineNodes([], cl=cl)
2880
  ssh_ports = GetNodesSshPorts(online_nodes, cl)
2881
  online_nodes = GetOnlineNodes([], cl=qcl)
2882
  ssh_ports = GetNodesSshPorts(online_nodes, qcl)
2881 2883

  
2882 2884
  # Don't keep a reference to the client. The master daemon will go away.
2883 2885
  del cl
2886
  del qcl
2884 2887

  
2885 2888
  assert master_node in online_nodes
2886 2889

  
......
3491 3494

  
3492 3495
  """
3493 3496
  if cl is None:
3494
    cl = GetClient()
3497
    cl = GetClient(query=True)
3495 3498

  
3496 3499
  qfilter = []
3497 3500

  

Also available in: Unified diff