You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2011/11/23 17:23:24 UTC

[PATCH core 4/5] CIMI: Implemented :show operation for :machine_configuration model in Rabbit

From: Michal Fojtik <mf...@redhat.com>


Signed-off-by: Michal fojtik <mf...@redhat.com>
---
 server/lib/cimi/server.rb |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/server/lib/cimi/server.rb b/server/lib/cimi/server.rb
index 39f72f5..5767d1b 100644
--- a/server/lib/cimi/server.rb
+++ b/server/lib/cimi/server.rb
@@ -16,10 +16,13 @@
 
 require 'cimi/helpers/dmtfdep'
 require 'cimi/helpers/cmwgapp_helper'
+require 'cimi/drivers/drivers'
+require 'deltacloud/core_ext'
+require 'cimi/model'
 
 set :version, '0.1.0'
 
-include Deltacloud::Drivers
+include CIMI::Drivers
 set :drivers, Proc.new { driver_config }
 
 STOREROOT = File.join($top_srcdir, 'lib', 'cimi', 'data')
@@ -108,9 +111,12 @@ global_collection :machine_configurations do
   end
 
   operation :show do
-    description "Show specific machine configuration."
-    with_capability :hardware_profile
-    param :id,          :string,    :required
+
+    description "The Machine Configuration entity represents the set of configuration values "+
+      "that define the (virtual) hardware resources of a to-be-realized Machine Instance.."
+
+    param :id, :string, :required
+
     control do
       machine_conf = driver.machine_configuration(credentials, :id => params[:id])
       machine_conf.uri = machine_configuration_url(params[:id])
@@ -119,6 +125,7 @@ global_collection :machine_configurations do
         format.json { machine_conf.to_json }
       end
     end
+
   end
 end
 
-- 
1.7.4.4


Re: [PATCH core 4/5] CIMI: Implemented :show operation for :machine_configuration model in Rabbit

Posted by David Lutterkort <lu...@redhat.com>.
On Wed, 2011-11-23 at 17:23 +0100, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mf...@redhat.com>
> 
> 
> Signed-off-by: Michal fojtik <mf...@redhat.com>
> ---
>  server/lib/cimi/server.rb |   15 +++++++++++----
>  1 files changed, 11 insertions(+), 4 deletions(-)

ACK