Clean TODOs that do not apply anymore

This commit is contained in:
Carlos Martín committed 2013-06-21 11:14:18 +02:00
1 parent c6e896fd56
commit eb50a24848
3 files changed
-11

No files matched your search

-1
View File
@@ -285,7 +285,6 @@ post '/service/:id/role/:role_name/action' do
rc = nil
service = service_pool.get(params[:id]) { |service|
# TODO check service state
roles = service.get_roles
role = roles[params[:role_name]]
-9
View File
@@ -308,11 +308,6 @@ protected
vm_state = node['vm_info']['VM']['STATE']
if vm_state == '7' # FAILED
# TODO: return error message and log it into the service log
#msg = "Role #{role.name()} : VM #{node['deploy_id']} found in FAILED state"
#Log.error LOG_COMP, msg
return true
end
end
@@ -349,10 +344,6 @@ protected
(node['disposed'] == '1' || node['scale_up'] == '1') &&
node['vm_info']['VM']['STATE'] == '7' # FAILED
# TODO: return error message and log it into the service log
#msg = "Role #{role.name()} : VM #{node['deploy_id']} found in FAILED state"
#Log.error LOG_COMP, msg
return true
end
}
-1
View File
@@ -435,7 +435,6 @@ module OpenNebula
end
tmp_str = vm.user_template_str
# TODO time & periods
if do_offset
time_offset = (index / vms_per_period.to_i).floor * period.to_i