1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

bug #2480: Use default values for enforce and ds_id if nil

This commit is contained in:
Daniel Molina 2013-11-20 17:56:11 +01:00
parent 435bc0cdd6
commit 95fa5c34d3

View File

@ -222,6 +222,8 @@ module OpenNebula
# @return [nil, OpenNebula::Error] nil in case of success, Error
# otherwise
def deploy(host_id, enforce=false, ds_id=-1)
enforce ||= false
ds_id ||= -1
return call(VM_METHODS[:deploy], @pe_id, host_id.to_i, enforce, ds_id.to_i)
end