deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [1/3] git commit: CIMI Client - expose only supported collections in cloudEntryPoint
Date Mon, 02 Jul 2012 14:43:11 GMT
Updated Branches:
  refs/heads/master cb7e5ae85 -> b8b1e0a7b


CIMI Client - expose only supported collections in cloudEntryPoint


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

Branch: refs/heads/master
Commit: b8b1e0a7b9dcc39ddfe235fab0d8eee67ea4c276
Parents: cfb0197
Author: marios <marios@redhat.com>
Authored: Fri Jun 29 13:41:46 2012 +0300
Committer: marios <marios@redhat.com>
Committed: Fri Jun 29 13:41:46 2012 +0300

----------------------------------------------------------------------
 clients/cimi/lib/entities/cloud_entry_point.rb |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/b8b1e0a7/clients/cimi/lib/entities/cloud_entry_point.rb
----------------------------------------------------------------------
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
 


Mime
View raw message