Revision c28502b1 scripts/gnt-cluster

b/scripts/gnt-cluster
854 854
  'repair-disk-sizes': (
855 855
    RepairDiskSizes, ARGS_MANY_INSTANCES, [],
856 856
    "", "Updates mismatches in recorded disk sizes"),
857
  'masterfailover': (
857
  'master-failover': (
858 858
    MasterFailover, ARGS_NONE, [NOVOTING_OPT],
859 859
    "", "Makes the current node the master"),
860 860
  'version': (
......
914 914
  }
915 915

  
916 916

  
917
#: dictionary with aliases for commands
918
aliases = {
919
  'masterfailover': 'master-failover',
920
}
921

  
922

  
917 923
if __name__ == '__main__':
918
  sys.exit(GenericMain(commands, override={"tag_type": constants.TAG_CLUSTER}))
924
  sys.exit(GenericMain(commands, override={"tag_type": constants.TAG_CLUSTER},
925
                       aliases=aliases))

Also available in: Unified diff