mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Signed-off-by: Carlos Herrera <cherrera@opennebula.systems>
This commit is contained in:
parent
629a2a38d4
commit
9d40f595ad
@ -2050,6 +2050,8 @@ module VCenterDriver
|
||||
|
||||
# Add vCenter template name
|
||||
new_template.update("VCENTER_TEMPLATE_NAME=#{@item.name}", true)
|
||||
|
||||
new_template.unlock()
|
||||
end
|
||||
|
||||
def resize_unmanaged_disks
|
||||
|
@ -65,6 +65,13 @@ begin
|
||||
vm = VCenterDriver::VirtualMachine.new_from_clone(vi_client,
|
||||
drv_action,
|
||||
vm_id)
|
||||
if vm.instantiated_as_persistent?
|
||||
template_id = vm.one_item['TEMPLATE/TEMPLATE_ID']
|
||||
vm_template = OpenNebula::Template.new_with_id(template_id, OpenNebula::Client.new)
|
||||
rc = vm_template.info()
|
||||
raise if OpenNebula.is_error?(rc)
|
||||
vm_template.lock(1)
|
||||
end
|
||||
end
|
||||
|
||||
if vm.is_powered_off?
|
||||
|
Loading…
x
Reference in New Issue
Block a user