Revision 9899796b
b/htools/Ganeti/HTools/CLI.hs | ||
---|---|---|
50 | 50 |
, oExTags |
51 | 51 |
, oExecJobs |
52 | 52 |
, oGroup |
53 |
, oIAllocSrc |
|
53 | 54 |
, oInstMoves |
54 | 55 |
, oLuxiSocket |
55 | 56 |
, oMachineReadable |
... | ... | |
118 | 119 |
, optExTags :: Maybe [String] -- ^ Tags to use for exclusion |
119 | 120 |
, optExecJobs :: Bool -- ^ Execute the commands via Luxi |
120 | 121 |
, optGroup :: Maybe GroupID -- ^ The UUID of the group to process |
122 |
, optIAllocSrc :: Maybe FilePath -- ^ The iallocation spec |
|
121 | 123 |
, optSelInst :: [String] -- ^ Instances to be excluded |
122 | 124 |
, optLuxi :: Maybe FilePath -- ^ Collect data from Luxi |
123 | 125 |
, optMachineReadable :: Bool -- ^ Output machine-readable format |
... | ... | |
158 | 160 |
, optExTags = Nothing |
159 | 161 |
, optExecJobs = False |
160 | 162 |
, optGroup = Nothing |
163 |
, optIAllocSrc = Nothing |
|
161 | 164 |
, optSelInst = [] |
162 | 165 |
, optLuxi = Nothing |
163 | 166 |
, optMachineReadable = False |
... | ... | |
269 | 272 |
(ReqArg (\ f o -> Ok o { optGroup = Just f }) "ID") |
270 | 273 |
"the ID of the group to balance" |
271 | 274 |
|
275 |
oIAllocSrc :: OptType |
|
276 |
oIAllocSrc = Option "I" ["ialloc-src"] |
|
277 |
(ReqArg (\ f opts -> Ok opts { optIAllocSrc = Just f }) "FILE") |
|
278 |
"Specify an iallocator spec as the cluster data source" |
|
279 |
|
|
272 | 280 |
oLuxiSocket :: OptType |
273 | 281 |
oLuxiSocket = Option "L" ["luxi"] |
274 | 282 |
(OptArg ((\ f opts -> Ok opts { optLuxi = Just f }) . |
Also available in: Unified diff