deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik ...@mifo.sk>
Subject Re: [PATCH] EC2: passing UserData as user_data in RunInstances
Date Wed, 10 Oct 2012 13:10:22 GMT
On Oct 10, 2012, at 3:00 PM, Oved Ourfali <oourfali@redhat.com> 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
> 


Mime
View raw message