incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From email4t...@gmail.com
Subject [PATCH] fix cloud entry point xml/json bugs caused by the collection changes
Date Wed, 12 Oct 2011 20:10:39 GMT
From: Tong Li <litong01@us.ibm.com>

---
 server/views/cimi/cloudEntryPoint/index.xml.haml |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/server/views/cimi/cloudEntryPoint/index.xml.haml b/server/views/cimi/cloudEntryPoint/index.xml.haml
index a8f0fce..75c772a 100644
--- a/server/views/cimi/cloudEntryPoint/index.xml.haml
+++ b/server/views/cimi/cloudEntryPoint/index.xml.haml
@@ -4,7 +4,6 @@
   %name cloud entry point
   %description cloud entry point
   %created= Time.new.getutc.to_s
-  - @all_apis.each do |api|
-    - if api != :cloudEntryPoint
-      - path_name = api.to_s.gsub(/[A-Z]/, '_\0').downcase
-      = "<#{api.to_s.pluralize} href=\"#{api_url_for(path_name)}\"/>"
\ No newline at end of file
+  - @collections.each do |api|
+    - res_name = api[0].to_s.gsub(/_[a-z]/) { |match| match[1].to_s.upcase }
+    = "<#{res_name} href=\"#{api[1]}\"/>"
\ No newline at end of file
-- 
1.7.4.1


Mime
View raw message