Skip to content
Snippets Groups Projects
Commit 410a8a76 authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename optISpec to optStdSpec


More consistency with the tiered allocation mode.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 294bb337
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,6 @@ data Options = Options
, optExecJobs :: Bool -- ^ Execute the commands via Luxi
, optGroup :: Maybe GroupID -- ^ The UUID of the group to process
, optSelInst :: [String] -- ^ Instances to be excluded
, optISpec :: RSpec -- ^ Requested instance specs
, optLuxi :: Maybe FilePath -- ^ Collect data from Luxi
, optMachineReadable :: Bool -- ^ Output machine-readable format
, optMaster :: String -- ^ Collect data from RAPI
......@@ -135,6 +134,7 @@ data Options = Options
, optShowInsts :: Bool -- ^ Whether to show the instance map
, optShowNodes :: Maybe [String] -- ^ Whether to show node status
, optShowVer :: Bool -- ^ Just show the program version
, optStdSpec :: RSpec -- ^ Requested standard specs
, optTieredSpec :: Maybe RSpec -- ^ Requested specs for tiered mode
, optReplay :: Maybe String -- ^ Unittests: RNG state
, optVerbose :: Int -- ^ Verbosity level
......@@ -154,7 +154,6 @@ defaultOptions = Options
, optExecJobs = False
, optGroup = Nothing
, optSelInst = []
, optISpec = RSpec 1 4096 102400
, optLuxi = Nothing
, optMachineReadable = False
, optMaster = ""
......@@ -174,6 +173,7 @@ defaultOptions = Options
, optShowInsts = False
, optShowNodes = Nothing
, optShowVer = False
, optStdSpec = RSpec 1 4096 102400
, optTieredSpec = Nothing
, optReplay = Nothing
, optVerbose = 1
......@@ -383,7 +383,7 @@ oStdSpec :: OptType
oStdSpec = Option "" ["standard-alloc"]
(ReqArg (\ inp opts -> do
tspec <- parseISpecString "standard" inp
return $ opts { optISpec = tspec } )
return $ opts { optStdSpec = tspec } )
"STDSPEC")
"enable standard specs allocation, given as 'disk,ram,cpu'"
......
......@@ -392,7 +392,7 @@ main = do
exitWith $ ExitFailure 1
let verbose = optVerbose opts
ispec = optISpec opts
ispec = optStdSpec opts
disk_template = optDiskTemplate opts
req_nodes = Instance.requiredNodes disk_template
machine_r = optMachineReadable opts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment