Revision d5b031dc lib/client/gnt_cluster.py

b/lib/client/gnt_cluster.py
539 539

  
540 540
  for name in nodes:
541 541
    result = srun.Run(name, constants.SSH_LOGIN_USER, command)
542

  
543
    if opts.failure_only and result.exit_code == constants.EXIT_SUCCESS:
544
      # Do not output anything for successful commands
545
      continue
546

  
542 547
    ToStdout("------------------------------------------------")
543 548
    if opts.show_machine_names:
544 549
      for line in result.output.splitlines():
......
1524 1529
    "[-n node...] <filename>", "Copies a file to all (or only some) nodes"),
1525 1530
  "command": (
1526 1531
    RunClusterCommand, [ArgCommand(min=1)],
1527
    [NODE_LIST_OPT, NODEGROUP_OPT, SHOW_MACHINE_OPT],
1532
    [NODE_LIST_OPT, NODEGROUP_OPT, SHOW_MACHINE_OPT, FAILURE_ONLY_OPT],
1528 1533
    "[-n node...] <command>", "Runs a command on all (or only some) nodes"),
1529 1534
  "info": (
1530 1535
    ShowClusterConfig, ARGS_NONE, [ROMAN_OPT],

Also available in: Unified diff