Revision 7002d873
b/lib/opcodes.py | ||
---|---|---|
1374 | 1374 |
("src_path", None, ht.TMaybeString, "Source directory for import"), |
1375 | 1375 |
("start", True, ht.TBool, "Whether to start instance after creation"), |
1376 | 1376 |
("tags", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "Instance tags"), |
1377 |
("hotplug", None, ht.TMaybeBool, "Whether to hotplug devices"), |
|
1378 | 1377 |
] |
1379 | 1378 |
OP_RESULT = ht.Comment("instance nodes")(ht.TListOf(ht.TNonEmptyString)) |
1380 | 1379 |
|
b/src/Ganeti/OpCodes.hs | ||
---|---|---|
434 | 434 |
, pWaitForSync |
435 | 435 |
, pOffline |
436 | 436 |
, pIpConflictsCheck |
437 |
, pHotplug |
|
437 | 438 |
]) |
438 | 439 |
, ("OpInstanceGrowDisk", |
439 | 440 |
[ pInstanceName |
b/src/Ganeti/OpParams.hs | ||
---|---|---|
99 | 99 |
, pHvState |
100 | 100 |
, pDiskState |
101 | 101 |
, pIgnoreIpolicy |
102 |
, pHotplug |
|
102 | 103 |
, pAllowRuntimeChgs |
103 | 104 |
, pInstDisks |
104 | 105 |
, pDiskTemplate |
... | ... | |
750 | 751 |
pIgnoreIpolicy :: Field |
751 | 752 |
pIgnoreIpolicy = defaultFalse "ignore_ipolicy" |
752 | 753 |
|
754 |
-- | Whether to hotplug device. |
|
755 |
pHotplug :: Field |
|
756 |
pHotplug = defaultFalse "hotplug" |
|
757 |
|
|
753 | 758 |
-- | Allow runtime changes while migrating. |
754 | 759 |
pAllowRuntimeChgs :: Field |
755 | 760 |
pAllowRuntimeChgs = defaultTrue "allow_runtime_changes" |
b/test/hs/Test/Ganeti/OpCodes.hs | ||
---|---|---|
276 | 276 |
pure emptyJSObject <*> arbitrary <*> genMaybe genNodeNameNE <*> |
277 | 277 |
return Nothing <*> genMaybe genNodeNameNE <*> return Nothing <*> |
278 | 278 |
genMaybe genNameNE <*> pure emptyJSObject <*> arbitrary <*> |
279 |
arbitrary <*> arbitrary |
|
279 |
arbitrary <*> arbitrary <*> arbitrary
|
|
280 | 280 |
"OP_INSTANCE_GROW_DISK" -> |
281 | 281 |
OpCodes.OpInstanceGrowDisk <$> genFQDN <*> return Nothing <*> |
282 | 282 |
arbitrary <*> arbitrary <*> arbitrary <*> arbitrary |
Also available in: Unified diff