Commit e7e09483 authored by Iustin Pop's avatar Iustin Pop
Browse files

Move the “--allocatable” option to

Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 771734c9
......@@ -44,6 +44,7 @@ from optparse import (OptionParser, TitledHelpFormatter,
__all__ = [
# Command line options
......@@ -710,6 +711,10 @@ DRAINED_OPT = cli_option("-D", "--drained", dest="drained", metavar=_YORNO,
choices=_YESNO, default=None,
help="Set the drained flag on the node")
ALLOCATABLE_OPT = cli_option("--allocatable", dest="allocatable",
choices=_YESNO, default=None, metavar=_YORNO,
help="Set the allocatable flag on a volume")
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
......@@ -676,12 +676,7 @@ commands = {
ArgChoice(min=1, max=1,
ArgFile(min=1, max=1)],
cli_option("--allocatable", dest="allocatable",
choices=["yes", "no"], default=None,
help="Set the allocatable flag on a volume"),
"<node_name> <storage_type> <name>",
"Modify storage volume on a node"),
'repair-volume': (RepairVolume,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment