From 40c6cd9c705ffb4db2123d2371f93ae57e064e16 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 4 Feb 2016 19:01:04 +0100 Subject: [PATCH] feature #4217: Use new_with_id method in perform_action --- src/sunstone/models/SunstoneServer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/models/SunstoneServer.rb b/src/sunstone/models/SunstoneServer.rb index d575294844..8ec3c85a5b 100644 --- a/src/sunstone/models/SunstoneServer.rb +++ b/src/sunstone/models/SunstoneServer.rb @@ -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