incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 1/2] Added owner_id feature for EC2
Date Wed, 28 Jul 2010 12:39:38 GMT
---
 server/lib/deltacloud/base_driver/features.rb |    7 +++++++
 server/server.rb                              |    1 -
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/server/lib/deltacloud/base_driver/features.rb b/server/lib/deltacloud/base_driver/features.rb
index 8ad354a..55dfdbe 100644
--- a/server/lib/deltacloud/base_driver/features.rb
+++ b/server/lib/deltacloud/base_driver/features.rb
@@ -120,6 +120,13 @@ module Deltacloud
     #
     # Declaration of optional features
     #
+    declare_feature :images,  :owner_id do
+      description "Filter images using owner id"
+      operation :index do
+        param :owner_id,  :string,  :optional,  nil,  "Amazon EC2 user ID"
+      end
+    end
+
     declare_feature :instances, :user_name do
       description "Accept a user-defined name on instance creation"
       operation :create do
diff --git a/server/server.rb b/server/server.rb
index 2516d3e..713df08 100644
--- a/server/server.rb
+++ b/server/server.rb
@@ -100,7 +100,6 @@ END
     "owner_id" and "architecture" parameter
 END
     param :id,            :string
-    param :owner_id,      :string
     param :architecture,  :string,  :optional
     control { filter_all(:images) }
   end
-- 
1.7.2


Mime
View raw message