deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH 3/3] CIMI Client - expose only supported collections in cloudEntryPoint
Date Fri, 29 Jun 2012 10:43:13 GMT
From: marios <marios@redhat.com>


Signed-off-by: marios <marios@redhat.com>
---
 clients/cimi/lib/entities/cloud_entry_point.rb |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/clients/cimi/lib/entities/cloud_entry_point.rb b/clients/cimi/lib/entities/cloud_entry_point.rb
index 449b3f7..94225f7 100644
--- a/clients/cimi/lib/entities/cloud_entry_point.rb
+++ b/clients/cimi/lib/entities/cloud_entry_point.rb
@@ -15,11 +15,10 @@
 
 
 class CIMI::Frontend::CloudEntryPoint < CIMI::Frontend::Entity
-
   get '/cimi/cloudEntryPoint' do
     entry_point_xml = get_entity_collection('cloudEntryPoint', credentials)
     @entry_point = CIMI::Model::CloudEntryPoint.from_xml(entry_point_xml)
-    @entities = CIMI::Model::root_entities.map { |e| e.underscore.downcase }
+    @entities = CIMI::Model::root_entities.map { |e| e.underscore.downcase }.reject{|col|
@entry_point[col].href.nil?}
     haml :'cloud_entry_point/index'
   end
 
-- 
1.7.6.5


Mime
View raw message