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 2011/10/19 15:44:07 UTC

[PATCH core 1/4] CIMI: Display correct URL for cimi entry point

From: Michal Fojtik <mf...@redhat.com>


Signed-off-by: Michal fojtik <mf...@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


Re: [PATCH core 1/4] CIMI: Display correct URL for cimi entry point

Posted by David Lutterkort <lu...@redhat.com>.
On Wed, 2011-10-19 at 15:44 +0200, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mf...@redhat.com>
> 
> 
> Signed-off-by: Michal fojtik <mf...@redhat.com>
> ---
>  server/bin/deltacloudd |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)

ACK