You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/10/19 11:03:11 UTC

[2/2] git commit: EC2: passing UserData as user_data in RunInstances

EC2: passing UserData as user_data in RunInstances


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/630854bb
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/630854bb
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/630854bb

Branch: refs/heads/master
Commit: 630854bbcef7af33253af52b1670e545c235b76b
Parents: adade32
Author: Oved Ourfali <oo...@redhat.com>
Authored: Thu Oct 18 12:26:15 2012 +0200
Committer: Michal fojtik <mf...@redhat.com>
Committed: Fri Oct 19 11:02:38 2012 +0200

----------------------------------------------------------------------
 server/lib/ec2/query_parser.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/630854bb/server/lib/ec2/query_parser.rb
----------------------------------------------------------------------
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 }},