You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Oved Ourfali <oo...@redhat.com> on 2012/10/18 12:23:59 UTC
[PATCH 1/3] EC2: passing UserData as user_data in RunInstances
---
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
Re: [PATCH 1/3] EC2: passing UserData as user_data in RunInstances
Posted by Oved Ourfalli <ov...@redhat.com>.
Ignore this patch.
I just sent another without the PATCH 1/3 in the title (I have other patches I'm working on so that's why it took them as well, but they are unrelated).
Oved
----- Original Message -----
> From: "Oved Ourfali" <oo...@redhat.com>
> To: dev@deltacloud.apache.org
> Cc: "Oved Ourfali" <oo...@redhat.com>
> Sent: Thursday, October 18, 2012 12:23:59 PM
> Subject: [PATCH 1/3] EC2: passing UserData as user_data in RunInstances
>
> ---
> 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
>
>