1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

L #3912: lint deploy (#4583)

Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
Carlos J. Herrera 2020-04-22 10:22:22 -04:00 committed by GitHub
parent 52e36b057f
commit e28c737bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,8 +60,8 @@ begin
vi_client = VCenterDriver::VIClient.new_from_host(host_id)
one_vm = VCenterDriver::VIHelper.one_item(OpenNebula::VirtualMachine, vm_id)
if drv_action.retrieve_xmlelements("USER_TEMPLATE/VCENTER_TAG").size > 0
raise "vShepre automation gems are not installed" unless REST_CLIENT
if !drv_action.retrieve_xmlelements('USER_TEMPLATE/VCENTER_TAG').empty?
raise 'vShepre automation gems are not installed' unless REST_CLIENT
end
if deploy_id_valid?(deploy_id)