Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F97AD983 for ; Thu, 18 Oct 2012 10:24:30 +0000 (UTC) Received: (qmail 75613 invoked by uid 500); 18 Oct 2012 10:24:30 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 75491 invoked by uid 500); 18 Oct 2012 10:24:29 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 75466 invoked by uid 99); 18 Oct 2012 10:24:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 10:24:28 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of oourfali@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 10:24:22 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9IAO177019515 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 18 Oct 2012 06:24:01 -0400 Received: from dhcp-1-30.tlv.redhat.com (dhcp-1-202.tlv.redhat.com [10.35.1.202]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q9IANuHY001227 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Oct 2012 06:23:59 -0400 From: Oved Ourfali To: dev@deltacloud.apache.org Cc: Oved Ourfali Subject: EC2: passing UserData as user_data in RunInstances Date: Thu, 18 Oct 2012 12:26:15 +0200 Message-Id: <1350555975-22880-1-git-send-email-oourfali@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Virus-Checked: Checked by ClamAV on apache.org --- 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