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:
parent
0ef024d7e1
commit
89c1e7b3a7
@ -93,4 +93,4 @@
|
||||
|
||||
# Marketplace endpoint
|
||||
#
|
||||
:marketplace_url: http://marketplace.c12g.com/
|
||||
:marketplace_url: https://marketplace.c12g.com/appliance
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user