1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Bug #1313: Fix marketplace endpoint and error code handling

(cherry picked from commit c62622ed6bd2bd61060132a8bdee4ef0d1f0e9d8)
This commit is contained in:
Hector Sanjuan 2012-06-26 15:10:53 +02:00 committed by Ruben S. Montero
parent 0ef024d7e1
commit 89c1e7b3a7
2 changed files with 4 additions and 4 deletions

View File

@ -93,4 +93,4 @@
# Marketplace endpoint
#
:marketplace_url: http://marketplace.c12g.com/
:marketplace_url: https://marketplace.c12g.com/appliance

View File

@ -30,7 +30,7 @@ module SunstoneMarketplace
if CloudClient::is_error?(response)
error = Error.new(response.to_s)
return [response.code, error.to_json]
return [response.code.to_i, error.to_json]
end
[200, response.body]
@ -47,9 +47,9 @@ module SunstoneMarketplace
if CloudClient::is_error?(response)
error = Error.new(response.to_s)
return [response.code, error.to_json]
return [response.code.to_i, error.to_json]
end
[200, response.body]
end
end
end