Code Review
/
apex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Updating Apex to OpenStack Ocata
[apex.git]
/
lib
/
python
/
apex
/
inventory.py
diff --git
a/lib/python/apex/inventory.py
b/lib/python/apex/inventory.py
index
ce16ef4
..
2e08d3b
100644
(file)
--- a/
lib/python/apex/inventory.py
+++ b/
lib/python/apex/inventory.py
@@
-43,6
+43,8
@@
class Inventory(dict):
node['pm_password'] = node['ipmi_pass']
node['pm_user'] = node['ipmi_user']
node['mac'] = [node['mac_address']]
+ if 'cpus' in node:
+ node['cpu'] = node['cpus']
for i in ('ipmi_ip', 'ipmi_pass', 'ipmi_user', 'mac_address',
'disk_device'):