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

feature #4217: Use new_with_id method in perform_action

This commit is contained in:
Daniel Molina 2016-02-04 19:01:04 +01:00
parent a1039b07ea
commit 40c6cd9c70

View File

@ -446,8 +446,8 @@ class SunstoneServer < CloudServer
when "security_group" then SecurityGroupJSON.new_with_id(id, @client)
when "vdc" then VdcJSON.new_with_id(id, @client)
when "vrouter" then VirtualRouterJSON.new_with_id(id, @client)
when "marketplace" then MarketPlaceJSON.new(id, @client)
when "marketplaceapp" then MarketPlaceAppJSON.new(id, @client)
when "marketplace" then MarketPlaceJSON.new_with_id(id, @client)
when "marketplaceapp" then MarketPlaceAppJSON.new_with_id(id, @client)
else
error = Error.new("Error: #{kind} resource not supported")
return error