Revision 34616379
b/lib/cli.py | ||
---|---|---|
860 | 860 |
default=True, action="store_false", |
861 | 861 |
help="Disable SSH key fingerprint checking") |
862 | 862 |
|
863 |
|
|
864 | 863 |
MC_OPT = cli_option("-C", "--master-candidate", dest="master_candidate", |
865 | 864 |
type="bool", default=None, metavar=_YORNO, |
866 | 865 |
help="Set the master_candidate flag on the node") |
867 | 866 |
|
868 | 867 |
OFFLINE_OPT = cli_option("-O", "--offline", dest="offline", metavar=_YORNO, |
869 | 868 |
type="bool", default=None, |
870 |
help="Set the offline flag on the node") |
|
869 |
help=("Set the offline flag on the node" |
|
870 |
" (cluster does not communicate with offline" |
|
871 |
" nodes)")) |
|
871 | 872 |
|
872 | 873 |
DRAINED_OPT = cli_option("-D", "--drained", dest="drained", metavar=_YORNO, |
873 | 874 |
type="bool", default=None, |
874 |
help="Set the drained flag on the node") |
|
875 |
help=("Set the drained flag on the node" |
|
876 |
" (excluded from allocation operations)")) |
|
875 | 877 |
|
876 | 878 |
CAPAB_MASTER_OPT = cli_option("--master-capable", dest="master_capable", |
877 | 879 |
type="bool", default=None, metavar=_YORNO, |
... | ... | |
904 | 906 |
help="Set the candidate pool size") |
905 | 907 |
|
906 | 908 |
VG_NAME_OPT = cli_option("--vg-name", dest="vg_name", |
907 |
help="Enables LVM and specifies the volume group" |
|
908 |
" name (cluster-wide) for disk allocation [xenvg]", |
|
909 |
help=("Enables LVM and specifies the volume group" |
|
910 |
" name (cluster-wide) for disk allocation" |
|
911 |
" [%s]" % constants.DEFAULT_VG), |
|
909 | 912 |
metavar="VG", default=None) |
910 | 913 |
|
911 | 914 |
YES_DOIT_OPT = cli_option("--yes-do-it", dest="yes_do_it", |
Also available in: Unified diff