mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
F #5289: Remove unneeded code
This commit is contained in:
parent
3f171f3b5b
commit
0f130a1abd
@ -2188,11 +2188,6 @@ private:
|
||||
*/
|
||||
int parse_sched_action(std::string& error_str);
|
||||
|
||||
/**
|
||||
* Assign id to sched actions without id
|
||||
*/
|
||||
void assign_sched_ids();
|
||||
|
||||
/**
|
||||
* Encrypt all secret attributes
|
||||
*/
|
||||
|
@ -570,9 +570,6 @@ module OpenNebula
|
||||
vm_id = node['deploy_id']
|
||||
vm = OpenNebula::VirtualMachine.new_with_id(vm_id,
|
||||
@service.client)
|
||||
|
||||
rc = vm.info
|
||||
|
||||
if OpenNebula.is_error?(rc)
|
||||
msg = "Role #{name} : VM #{vm_id} monitorization failed;"\
|
||||
" #{rc.message}"
|
||||
@ -583,14 +580,6 @@ module OpenNebula
|
||||
|
||||
@service.log_error(msg)
|
||||
else
|
||||
ids = vm.retrieve_elements('TEMPLATE/SCHED_ACTION/ID')
|
||||
|
||||
id = 0
|
||||
if !ids.nil? && !ids.empty?
|
||||
ids.map! {|e| e.to_i }
|
||||
id = ids.max + 1
|
||||
end
|
||||
|
||||
if do_offset
|
||||
offset = (index / vms_per_period.to_i).floor
|
||||
time_offset = offset * period.to_i
|
||||
|
Loading…
x
Reference in New Issue
Block a user