deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core] Core: Advertise API_PROVIDER in entrypoint page
Date Mon, 30 Apr 2012 11:48:23 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/views/api/show.xml.haml |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/views/api/show.xml.haml b/server/views/api/show.xml.haml
index 2b9f653..d28717d 100644
--- a/server/views/api/show.xml.haml
+++ b/server/views/api/show.xml.haml
@@ -1,4 +1,4 @@
-%api{ :version => settings.version, :driver => driver_symbol }
+%api{ :version => settings.version, :driver => driver_symbol, :provider => Thread::current[:provider]
|| ENV['API_PROVIDER'] || 'default' }
   - for entry_point in entry_points
     %link{ :rel=>entry_point[0], :href=>entry_point[1] }
       - for feature in driver.features(entry_point[0])
-- 
1.7.10


Mime
View raw message