L #3912: lint deploy (#4583)

Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
Carlos J. Herrera authored and GitHub committed 2020-04-22 16:22:22 +02:00
1 parent 52e36b057f
commit e28c737bc3
1 file changed
+2 -2
+2 -2
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)