mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 20:32:38 +09:00
feature #4217: Use new_with_id method in perform_action
This commit is contained in:
1 parent
a1039b07ea
commit
40c6cd9c70
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user