mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
OpenNebula does not require the template_id to be specified
This commit is contained in:
parent
d89c317d96
commit
bd2490b149
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue