OpenNebula does not require the template_id to be specified

This commit is contained in:
Daniel Wallace 2017-10-13 15:10:08 -06:00
parent d89c317d96
commit bd2490b149
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -4468,7 +4468,8 @@ def _list_nodes(full=False):
pass
vms[name]['id'] = vm.find('ID').text
vms[name]['image'] = vm.find('TEMPLATE').find('TEMPLATE_ID').text
if vm.find('TEMPLATE').find('TEMPLATE_ID'):
vms[name]['image'] = vm.find('TEMPLATE').find('TEMPLATE_ID').text
vms[name]['name'] = name
vms[name]['size'] = {'cpu': cpu_size, 'memory': memory_size}
vms[name]['state'] = vm.find('STATE').text