Revision 74adc100 scripts/gnt-cluster

b/scripts/gnt-cluster
300 300

  
301 301
  cl = GetClient()
302 302

  
303
  myname = utils.GetHostInfo().name
304

  
305 303
  cluster_name = cl.QueryConfigValues(["cluster_name"])[0]
306 304

  
307
  results = GetOnlineNodes(nodes=opts.nodes, cl=cl)
308
  results = [name for name in results if name != myname]
305
  results = GetOnlineNodes(nodes=opts.nodes, cl=cl, filter_master=True,
306
                           secondary_ips=opts.use_replication_network)
309 307

  
310 308
  srun = ssh.SshRunner(cluster_name=cluster_name)
311 309
  for node in results:
......
749 747
    "", "Shows the cluster master"),
750 748
  'copyfile': (
751 749
    ClusterCopyFile, [ArgFile(min=1, max=1)],
752
    [NODE_LIST_OPT],
750
    [NODE_LIST_OPT, USE_REPL_NET_OPT],
753 751
    "[-n node...] <filename>", "Copies a file to all (or only some) nodes"),
754 752
  'command': (
755 753
    RunClusterCommand, [ArgCommand(min=1)],

Also available in: Unified diff