incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 1/4] CIMI: Display correct URL for cimi entry point
Date Wed, 19 Oct 2011 13:44:07 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/bin/deltacloudd |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/server/bin/deltacloudd b/server/bin/deltacloudd
index 44dc037..46f5616 100755
--- a/server/bin/deltacloudd
+++ b/server/bin/deltacloudd
@@ -149,10 +149,11 @@ ENV["API_PORT"] = "3001" unless ENV["API_PORT"]
 unless options[:daemon]
   msg = "Starting Deltacloud API :: #{ENV["API_DRIVER"]} "
   msg << ":: #{ENV['API_PROVIDER']} " if ENV['API_PROVIDER']
+  api_uri = ENV['API_FRONTEND'] == 'cimi' ? 'cimi/cloudEntryPoint' : 'api'
   if options[:ssl]
-    msg << ":: https://#{ENV["API_HOST"]}:#{ENV["API_PORT"]}/api"
+    msg << ":: https://#{ENV["API_HOST"]}:#{ENV["API_PORT"]}/#{api_uri}"
   else
-    msg << ":: http://#{ENV["API_HOST"]}:#{ENV["API_PORT"]}/api"
+    msg << ":: http://#{ENV["API_HOST"]}:#{ENV["API_PORT"]}/#{api_uri}"
   end
   puts msg
   puts
-- 
1.7.4.4


Mime
View raw message