[OCCI] Adding port to url used by pools

git-svn-id: http://svn.opennebula.org/one/trunk@801 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Constantino Vázquez Blanco committed 2009-09-22 14:29:42 +00:00
1 parent 6581208e49
commit cdc97253a1
1 file changed
+3 -3
+3 -3
View File
@@ -264,7 +264,7 @@ get '/compute' do
vmpool.info
# OCCI conversion
begin
vmpool.to_occi(CONFIG[:server])
vmpool.to_occi(CONFIG[:server]+":"+CONFIG[:port])
rescue Exception => e
error = OpenNebula::Error.new(e.message)
return error
@@ -306,7 +306,7 @@ get '/network' do
network_pool.info
# OCCI conversion
begin
network_pool.to_occi(CONFIG[:server])
network_pool.to_occi(CONFIG[:server]+":"+CONFIG[:port])
rescue Exception => e
error = OpenNebula::Error.new(e.message)
return error
@@ -359,7 +359,7 @@ get '/storage' do
image_pool = "<STORAGE>"
for image in images do
image_pool += "<DISK id=\"#{image[:uuid]}\" href=\"http://#{CONFIG[:server]}/storage/#{image[:uuid]}\">"
image_pool += "<DISK id=\"#{image[:uuid]}\" href=\"http://#{CONFIG[:server]}:#{CONFIG[:port]}/storage/#{image[:uuid]}\">"
end
image_pool += "</STORAGE>"
image_pool