Skip to content
Snippets Groups Projects
Commit b3a447ef authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Forward-port: Small codestyle fixes for dumb-allocator

Reviewed-by: iustinp
parent ef267657
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,7 @@ that fits in both memory and disk space, without any consideration for ...@@ -25,6 +25,7 @@ that fits in both memory and disk space, without any consideration for
equal spread or VCPU oversubscription. equal spread or VCPU oversubscription.
""" """
import simplejson import simplejson
import sys import sys
...@@ -95,12 +96,13 @@ def main(): ...@@ -95,12 +96,13 @@ def main():
result_nodes.append(new_selection) result_nodes.append(new_selection)
result = { result = {
"success": True, "success": True,
"info": "Allocation successful", "info": "Allocation successful",
"nodes": result_nodes, "nodes": result_nodes,
} }
print simplejson.dumps(result, indent=2) print simplejson.dumps(result, indent=2)
return 0 return 0
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(main()) sys.exit(main())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment