Revision 121b8921 snf-cyclades-app/synnefo/logic/backend.py
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
915 | 915 |
can_host_vms = n['vm_capable'] and not (n['drained'] or n['offline']) |
916 | 916 |
if can_host_vms and n['cnodes']: |
917 | 917 |
for a in attr: |
918 |
res[a] += int(n[a]) |
|
918 |
res[a] += int(n[a] or 0)
|
|
919 | 919 |
return res |
920 | 920 |
|
921 | 921 |
|
Also available in: Unified diff