deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oved Ourfali <oourf...@redhat.com>
Subject EC2: passing UserData as user_data in RunInstances
Date Thu, 18 Oct 2012 10:26:15 GMT
---
 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