mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
Signed-off-by: Carlos Herrera <cherrera@opennebula.systems>
This commit is contained in:
1 parent
629a2a38d4
commit
9d40f595ad
2 files changed
+9
No files matched your search
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user