deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH 3/4] Adds deltacloud features <--> CIMI::EntityMetadata to CIMI::Machine
Date Mon, 05 Dec 2011 16:15:16 GMT
From: marios <marios@redhat.com>


Signed-off-by: marios <marios@redhat.com>
---
 server/lib/cimi/model/machine.rb |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/server/lib/cimi/model/machine.rb b/server/lib/cimi/model/machine.rb
index 54d9418..cd8a218 100644
--- a/server/lib/cimi/model/machine.rb
+++ b/server/lib/cimi/model/machine.rb
@@ -100,6 +100,11 @@ class CIMI::Model::Machine < CIMI::Model::Base
     context.driver.destroy_instance(context.credentials, id)
   end
 
+  def self.create_entity_metadata(context)
+    cimi_entity = self.name.split("::").last
+    metadata = EntityMetadata.find(context, cimi_entity, :instances)
+  end
+
   private
 
   def self.from_instance(instance, context)
-- 
1.7.6.4


Mime
View raw message