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:
parent
435bc0cdd6
commit
95fa5c34d3
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user