On Oct 10, 2012, at 3:00 PM, Oved Ourfali <[email protected]> wrote:

ACK. Nice catch!

Just note, that user_data are not supported for all providers. But I think it is
safe to support it here, in case provider does not support that feature they 
will
be just ignored.

  -- Michal


> ---
> server/lib/ec2/query_parser.rb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/lib/ec2/query_parser.rb b/server/lib/ec2/query_parser.rb
> index d0585e3..c0504e1 100644
> --- a/server/lib/ec2/query_parser.rb
> +++ b/server/lib/ec2/query_parser.rb
> @@ -24,7 +24,7 @@ module Deltacloud::EC2
>       :describe_key_pairs => { :method => :keys, :params => {} },
>       :create_key_pair => { :method => :create_key, :params => { 'KeyName' => 
> :key_name }},
>       :delete_key_pair => { :method => :destroy_key, :params => { 'KeyName' 
> => :id }},
> -      :run_instances => { :method => :create_instance, :params => { 
> 'ImageId' => :image_id, 'InstanceType' => :hwp_id, 
> 'Placement.AvailabilityZone' => :realm_id }},
> +      :run_instances => { :method => :create_instance, :params => { 
> 'ImageId' => :image_id, 'InstanceType' => :hwp_id, 
> 'Placement.AvailabilityZone' => :realm_id, 'UserData' => :user_data }},
>       :stop_instances => { :method => :stop_instance, :params => { 
> 'InstanceId.1' => :id }},
>       :start_instances => { :method => :start_instance, :params => { 
> 'InstanceId.1' => :id }},
>       :reboot_instances => { :method => :reboot_instance, :params => { 
> 'InstanceId.1' => :id }},
> -- 
> 1.7.11.2
> 

Reply via email to