Commit 00dd8326 authored by Alexander Schreiber's avatar Alexander Schreiber
Browse files

Fix gnt-cluster init without cluster parameters

Reviewed-by: imsnah
parent 8a0b06d2
......@@ -94,7 +94,9 @@ def InitCluster(opts, args):
ToStderr("%s must be an integer", constants.BE_VCPUS)
return 1
beparams[constants.BE_MEMORY] = utils.ParseUnit(beparams[constants.BE_MEMORY])
if not isinstance(beparams[constants.BE_MEMORY], int):
beparams[constants.BE_MEMORY] = utils.ParseUnit(
# prepare hvparams dict
for hv in constants.HYPER_TYPES:
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