incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1186740 - /incubator/deltacloud/trunk/server/bin/deltacloudd
Date Thu, 20 Oct 2011 11:28:49 GMT
Author: mfojtik
Date: Thu Oct 20 11:28:48 2011
New Revision: 1186740

URL: http://svn.apache.org/viewvc?rev=1186740&view=rev
Log:
CIMI: Display correct URL for cimi entry point

Modified:
    incubator/deltacloud/trunk/server/bin/deltacloudd

Modified: incubator/deltacloud/trunk/server/bin/deltacloudd
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/bin/deltacloudd?rev=1186740&r1=1186739&r2=1186740&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/bin/deltacloudd (original)
+++ incubator/deltacloud/trunk/server/bin/deltacloudd Thu Oct 20 11:28:48 2011
@@ -149,10 +149,11 @@ ENV["API_PORT"] = "3001" unless ENV["API
 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



Mime
View raw message