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
b3a447ef
Commit
b3a447ef
authored
16 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Forward-port: Small codestyle fixes for dumb-allocator
Reviewed-by: iustinp
parent
ef267657
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
doc/examples/dumb-allocator
+6
-4
6 additions, 4 deletions
doc/examples/dumb-allocator
with
6 additions
and
4 deletions
doc/examples/dumb-allocator
+
6
−
4
View file @
b3a447ef
...
...
@@ -25,6 +25,7 @@ that fits in both memory and disk space, without any consideration for
equal spread or VCPU oversubscription.
"""
import
simplejson
import
sys
...
...
@@ -95,12 +96,13 @@ def main():
result_nodes
.
append
(
new_selection
)
result
=
{
"
success
"
:
True
,
"
info
"
:
"
Allocation successful
"
,
"
nodes
"
:
result_nodes
,
}
"
success
"
:
True
,
"
info
"
:
"
Allocation successful
"
,
"
nodes
"
:
result_nodes
,
}
print
simplejson
.
dumps
(
result
,
indent
=
2
)
return
0
if
__name__
==
"
__main__
"
:
sys
.
exit
(
main
())
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