Revision 3db3eb2a lib/cli.py

b/lib/cli.py
50 50
  "AUTO_REPLACE_OPT",
51 51
  "BACKEND_OPT",
52 52
  "CLEANUP_OPT",
53
  "CLUSTER_DOMAIN_SECRET_OPT",
53 54
  "CONFIRM_OPT",
54 55
  "CP_SIZE_OPT",
55 56
  "DEBUG_OPT",
......
81 82
  "MC_OPT",
82 83
  "NET_OPT",
83 84
  "NEW_CLUSTER_CERT_OPT",
85
  "NEW_CLUSTER_DOMAIN_SECRET_OPT",
84 86
  "NEW_CONFD_HMAC_KEY_OPT",
85 87
  "NEW_RAPI_CERT_OPT",
86 88
  "NEW_SECONDARY_OPT",
......
824 826
                               metavar="NETDEV",
825 827
                               default=constants.DEFAULT_BRIDGE)
826 828

  
827

  
828 829
GLOBAL_FILEDIR_OPT = cli_option("--file-storage-dir", dest="file_storage_dir",
829 830
                                help="Specify the default directory (cluster-"
830 831
                                "wide) for storing the file-based disks [%s]" %
......
898 899
                                    help=("Create a new HMAC key for %s" %
899 900
                                          constants.CONFD))
900 901

  
902
CLUSTER_DOMAIN_SECRET_OPT = cli_option("--cluster-domain-secret",
903
                                       dest="cluster_domain_secret",
904
                                       default=None,
905
                                       help=("Load new new cluster domain"
906
                                             " secret from file"))
907

  
908
NEW_CLUSTER_DOMAIN_SECRET_OPT = cli_option("--new-cluster-domain-secret",
909
                                           dest="new_cluster_domain_secret",
910
                                           default=False, action="store_true",
911
                                           help=("Create a new cluster domain"
912
                                                 " secret"))
913

  
901 914

  
902 915
def _ParseArgs(argv, commands, aliases):
903 916
  """Parser for the command line arguments.

Also available in: Unified diff