Revision aa922d64 lib/opcodes.py
b/lib/opcodes.py | ||
---|---|---|
184 | 184 |
("target_groups", None, ht.TMaybeListOf(ht.TNonEmptyString), |
185 | 185 |
"Destination group names or UUIDs (defaults to \"all but current group\")") |
186 | 186 |
|
187 |
# The reason for a state change of an instance |
|
188 |
_PReason = \ |
|
189 |
("reason", (constants.INSTANCE_REASON_SOURCE_UNKNOWN, None), |
|
190 |
ht.TAnd(ht.TIsLength(2), |
|
191 |
ht.TItems([ |
|
192 |
ht.TElemOf(constants.INSTANCE_REASON_SOURCES), |
|
193 |
ht.TMaybeString, |
|
194 |
])), |
|
195 |
"The reason why the state of the instance is changing") |
|
196 |
|
|
197 | 187 |
#: OP_ID conversion regular expression |
198 | 188 |
_OPID_RE = re.compile("([a-z])([A-Z])") |
199 | 189 |
|
... | ... | |
1465 | 1455 |
"Whether to start the instance even if secondary disks are failing"), |
1466 | 1456 |
("reboot_type", ht.NoDefault, ht.TElemOf(constants.REBOOT_TYPES), |
1467 | 1457 |
"How to reboot instance"), |
1468 |
_PReason, |
|
1469 | 1458 |
] |
1470 | 1459 |
OP_RESULT = ht.TNone |
1471 | 1460 |
|
Also available in: Unified diff