deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [1/5] git commit: CIMI: Return entities from CloudEntryPoint
Date Thu, 11 Oct 2012 08:53:44 GMT
Updated Branches:
  refs/heads/master 8592f692a -> 1cb4f416b


CIMI: Return entities from CloudEntryPoint

This patch add method to retrieve references
to entities from CEP.

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
TrackedAt: http://tracker.deltacloud.org/patch/1698e7aa37db4dce4b367d3726dfaa6e868eef11


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

Branch: refs/heads/master
Commit: 1cb4f416b9f4f140ea5e97eaa0591ec53d51d7c8
Parents: 7d74517
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Tue Oct 9 14:56:22 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Thu Oct 11 10:50:10 2012 +0200

----------------------------------------------------------------------
 server/lib/cimi/models/cloud_entry_point.rb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/1cb4f416/server/lib/cimi/models/cloud_entry_point.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/models/cloud_entry_point.rb b/server/lib/cimi/models/cloud_entry_point.rb
index 38b5a88..7d11bf6 100644
--- a/server/lib/cimi/models/cloud_entry_point.rb
+++ b/server/lib/cimi/models/cloud_entry_point.rb
@@ -39,6 +39,10 @@ class CIMI::Model::CloudEntryPoint < CIMI::Model::Base
     end
   end
 
+  def entities
+    @attribute_values.clone.delete_if { |key, value| !value.respond_to? :href }
+  end
+
   private
 
   def self.href_defined?(resource)


Mime
View raw message