Skip to content
Snippets Groups Projects
Commit 00dd8326 authored by Alexander Schreiber's avatar Alexander Schreiber
Browse files

Fix gnt-cluster init without cluster parameters


Reviewed-by: imsnah
parent 8a0b06d2
No related branches found
No related tags found
No related merge requests found
......@@ -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(
beparams[constants.BE_MEMORY])
# prepare hvparams dict
for hv in constants.HYPER_TYPES:
......
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