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
b3a447ef
Commit
b3a447ef
authored
Jun 06, 2008
by
Michael Hanselmann
Browse files
Forward-port: Small codestyle fixes for dumb-allocator
Reviewed-by: iustinp
parent
ef267657
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/examples/dumb-allocator
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
())
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