projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef26765
)
Forward-port: Small codestyle fixes for dumb-allocator
author
Michael Hanselmann
<hansmi@google.com>
Fri, 6 Jun 2008 09:28:56 +0000
(09:28 +0000)
committer
Michael Hanselmann
<hansmi@google.com>
Fri, 6 Jun 2008 09:28:56 +0000
(09:28 +0000)
Reviewed-by: iustinp
doc/examples/dumb-allocator
patch
|
blob
|
history
diff --git
a/doc/examples/dumb-allocator
b/doc/examples/dumb-allocator
index
2996e49
..
d7e9486
100755
(executable)
--- a/
doc/examples/dumb-allocator
+++ b/
doc/examples/dumb-allocator
@@
-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())