feature #4217: Use new_with_id method in perform_action

This commit is contained in:
Daniel Molina committed 2016-02-04 19:01:15 +01:00
1 parent a1039b07ea
commit 40c6cd9c70
1 file changed
+2 -2
+2 -2
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