Merge pull request #44097 from gtmanfred/openneb

OpenNebula does not require the template_id to be specified
This commit is contained in:
Nicole Thomas 2017-10-16 14:36:16 -04:00 committed by GitHub
commit 13f3ffa83a

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