Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
00dd8326
Commit
00dd8326
authored
16 years ago
by
Alexander Schreiber
Browse files
Options
Downloads
Patches
Plain Diff
Fix gnt-cluster init without cluster parameters
Reviewed-by: imsnah
parent
8a0b06d2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/gnt-cluster
+3
-1
3 additions, 1 deletion
scripts/gnt-cluster
with
3 additions
and
1 deletion
scripts/gnt-cluster
+
3
−
1
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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment