From a42752027227c475c7c8a3ac3c12133aafc8f1a2 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Tue, 8 May 2012 12:06:51 +0200 Subject: [PATCH] feature #1048: Remove exec_and_log_ec2 default params --- src/vmm_mad/ec2/one_vmm_ec2.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vmm_mad/ec2/one_vmm_ec2.rb b/src/vmm_mad/ec2/one_vmm_ec2.rb index 05afb2aeb4..467b9e86f8 100755 --- a/src/vmm_mad/ec2/one_vmm_ec2.rb +++ b/src/vmm_mad/ec2/one_vmm_ec2.rb @@ -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