Commit 911ee606 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

opcodes: Common parameter for target groups



Also add a missing parenthesis at the end.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent ee93aa8a
......@@ -180,6 +180,10 @@ _PIAllocFromDesc = lambda desc: ("iallocator", None, ht.TMaybeString, desc)
_PNetworkName = ("network_name", ht.NoDefault, ht.TNonEmptyString,
"Set network name")
_PTargetGroups = \
("target_groups", None, ht.TMaybeListOf(ht.TNonEmptyString),
"Destination group names or UUIDs (defaults to \"all but current group\")")
#: OP_ID conversion regular expression
_OPID_RE = re.compile("([a-z])([A-Z])")
......@@ -1702,8 +1706,7 @@ class OpInstanceChangeGroup(OpCode):
_PInstanceName,
_PEarlyRelease,
_PIAllocFromDesc("Iallocator for computing solution"),
("target_groups", None, ht.TMaybeListOf(ht.TNonEmptyString),
"Destination group names or UUIDs (defaults to \"all but current group\""),
_PTargetGroups,
]
OP_RESULT = TJobIdListOnly
......@@ -1788,8 +1791,7 @@ class OpGroupEvacuate(OpCode):
_PGroupName,
_PEarlyRelease,
_PIAllocFromDesc("Iallocator for computing solution"),
("target_groups", None, ht.TMaybeListOf(ht.TNonEmptyString),
"Destination group names or UUIDs"),
_PTargetGroups,
]
OP_RESULT = TJobIdListOnly
......
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