Skip to content

Commit 63c2965

Browse files
committed
Adapt to OpenNebula 4.10, make USER_TEMPLATE accessible in VMs.
1 parent d682c2c commit 63c2965

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

oca/host.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class Host(PoolElement):
3636
'state' : int,
3737
'im_mad' : str,
3838
'vm_mad' : str,
39-
'tm_mad' : str,
4039
'last_mon_time' : int,
40+
'vm_ids' : ['VMS', lambda vms: map(lambda vmid: int(vmid.text), vms)],
4141
'template' : ['TEMPLATE', Template],
4242
'host_share' : ['HOST_SHARE', HostShare],
4343
}

oca/vm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class VirtualMachine(PoolElement):
9595
'net_tx' : int,
9696
'net_rx' : int,
9797
'template' : ['TEMPLATE', Template, ['NIC', 'DISK']],
98+
'user_template': ['USER_TEMPLATE', Template],
9899
'history_records' : ['HISTORY_RECORDS', lambda x: [History(i)
99100
for i in x] if x is not None else []],
100101
}

0 commit comments

Comments
 (0)