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:
parent
a1039b07ea
commit
40c6cd9c70
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user