You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2012/04/30 13:48:23 UTC
[PATCH core] Core: Advertise API_PROVIDER in entrypoint page
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@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