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

feature #1048: Remove exec_and_log_ec2 default params

This commit is contained in:
Daniel Molina 2012-05-08 12:06:51 +02:00
parent 59d0f14791
commit a427520272

View File

@ -193,7 +193,7 @@ class EC2Driver < VirtualMachineDriver
return
end
deploy_exe = exec_and_log_ec2(:run, ec2_info, id)
deploy_exe = exec_and_log_ec2(:run, ec2_info, "", id)
if deploy_exe.code != 0
msg = deploy_exe.stderr
send_message(ACTION[:deploy], RESULT[:failure], id, msg)
@ -360,7 +360,7 @@ private
# +action+: Symbol, one of the keys of the EC2 hash constant (i.e :run)
# +xml+: REXML Document, containing EC2 information
# +extra_params+: String, extra information to be added to the command
def exec_and_log_ec2(action, xml, extra_params="", id)
def exec_and_log_ec2(action, xml, extra_params, id)
cmd = EC2[action][:cmd].clone
cmd << ' ' << extra_params << ' ' if extra_params