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

Feature #1772: Minor edits

This commit is contained in:
Carlos Martín 2013-02-25 12:57:39 +01:00
parent 96c00ab9e5
commit 4be2e1e9a8
2 changed files with 7 additions and 2 deletions

View File

@ -338,14 +338,17 @@ module OpenNebula
end
# Resize the VM
#
# @param cpu [Float] the new CPU value
# @param memory [Integer] the new MEMORY value
# @param vcpu [Integer] the new VCPU value
# @param enforce [true|false] If it is set to true, the host capacity
# will be checked
#
# @return [nil, OpenNebula::Error] nil in case of success, Error
# otherwise
def resize(cpu, memory, vcpu, enforce)
return @client.call(VM_METHODS[:resize], @pe_id, cpu, memory,
vcpu, enforce)
return call(VM_METHODS[:resize], @pe_id, cpu, memory, vcpu, enforce)
end
# Changes the owner/group

View File

@ -1133,6 +1133,8 @@ void VirtualMachineResize::request_execute(xmlrpc_c::paramList const& paramList,
{
hid = vm->get_hid();
}
break;
case VirtualMachine::INIT:
case VirtualMachine::PENDING:
case VirtualMachine::HOLD: