You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/10/11 10:53:44 UTC

[1/5] git commit: CIMI: Return entities from CloudEntryPoint

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 <mf...@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 <mf...@redhat.com>
Authored: Tue Oct 9 14:56:22 2012 +0200
Committer: Michal fojtik <mf...@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)