1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-04 17:47:00 +03:00

Remove specific vCenter deploy action

This commit is contained in:
Jaime Melis 2017-07-17 08:28:43 +02:00 committed by Ruben S. Montero
parent e243c86b1c
commit dd97208ca3

View File

@ -14,7 +14,6 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'opennebula/pool_element'
module OpenNebula
@ -343,16 +342,6 @@ module OpenNebula
self.info
# Add dsid as VM template parameter for vcenter
if ds_id!=-1 &&
!self["/VM/USER_TEMPLATE/PUBLIC_CLOUD/TYPE"].nil? &&
self["/VM/USER_TEMPLATE/PUBLIC_CLOUD/TYPE"].downcase == "vcenter"
ds = OpenNebula::Datastore.new_with_id(ds_id, @client)
rc = ds.info
return rc if OpenNebula.is_error?(rc)
self.update("VCENTER_DS_REF=#{ds['/DATASTORE/VCENTER_DS_REF']}", true)
end
return call(VM_METHODS[:deploy],
@pe_id,
host_id.to_i,