Revision b3a447ef
b/doc/examples/dumb-allocator | ||
---|---|---|
25 | 25 |
equal spread or VCPU oversubscription. |
26 | 26 |
|
27 | 27 |
""" |
28 |
|
|
28 | 29 |
import simplejson |
29 | 30 |
import sys |
30 | 31 |
|
... | ... | |
95 | 96 |
result_nodes.append(new_selection) |
96 | 97 |
|
97 | 98 |
result = { |
98 |
"success": True,
|
|
99 |
"info": "Allocation successful",
|
|
100 |
"nodes": result_nodes,
|
|
101 |
}
|
|
99 |
"success": True, |
|
100 |
"info": "Allocation successful", |
|
101 |
"nodes": result_nodes, |
|
102 |
} |
|
102 | 103 |
print simplejson.dumps(result, indent=2) |
103 | 104 |
return 0 |
104 | 105 |
|
106 |
|
|
105 | 107 |
if __name__ == "__main__": |
106 | 108 |
sys.exit(main()) |
Also available in: Unified diff