Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
00dd8326
Commit
00dd8326
authored
Nov 07, 2008
by
Alexander Schreiber
Browse files
Fix gnt-cluster init without cluster parameters
Reviewed-by: imsnah
parent
8a0b06d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/gnt-cluster
View file @
00dd8326
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment