Revision b6e88032 lib/client/gnt_cluster.py

b/lib/client/gnt_cluster.py
397 397
  cluster_name = cl.QueryConfigValues(["cluster_name"])[0]
398 398

  
399 399
  results = GetOnlineNodes(nodes=opts.nodes, cl=cl, filter_master=True,
400
                           secondary_ips=opts.use_replication_network)
400
                           secondary_ips=opts.use_replication_network,
401
                           nodegroup=opts.nodegroup)
401 402

  
402 403
  srun = ssh.SshRunner(cluster_name=cluster_name)
403 404
  for node in results:
......
421 422

  
422 423
  command = " ".join(args)
423 424

  
424
  nodes = GetOnlineNodes(nodes=opts.nodes, cl=cl)
425
  nodes = GetOnlineNodes(nodes=opts.nodes, cl=cl, nodegroup=opts.nodegroup)
425 426

  
426 427
  cluster_name, master_node = cl.QueryConfigValues(["cluster_name",
427 428
                                                    "master_node"])
......
1288 1289
    "", "Shows the cluster master"),
1289 1290
  'copyfile': (
1290 1291
    ClusterCopyFile, [ArgFile(min=1, max=1)],
1291
    [NODE_LIST_OPT, USE_REPL_NET_OPT],
1292
    [NODE_LIST_OPT, USE_REPL_NET_OPT, NODEGROUP_OPT],
1292 1293
    "[-n node...] <filename>", "Copies a file to all (or only some) nodes"),
1293 1294
  'command': (
1294 1295
    RunClusterCommand, [ArgCommand(min=1)],
1295
    [NODE_LIST_OPT],
1296
    [NODE_LIST_OPT, NODEGROUP_OPT],
1296 1297
    "[-n node...] <command>", "Runs a command on all (or only some) nodes"),
1297 1298
  'info': (
1298 1299
    ShowClusterConfig, ARGS_NONE, [ROMAN_OPT],

Also available in: Unified diff