You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2012/12/13 11:43:18 UTC
[PATCH core 2/4] Core: Serialize :drivers collection in same way as other collections
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@redhat.com>
---
server/lib/deltacloud/collections/drivers.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/lib/deltacloud/collections/drivers.rb b/server/lib/deltacloud/collections/drivers.rb
index 9753c36..8c51019 100644
--- a/server/lib/deltacloud/collections/drivers.rb
+++ b/server/lib/deltacloud/collections/drivers.rb
@@ -39,7 +39,7 @@ module Deltacloud::Collections
halt 404 unless @driver
respond_to do |format|
format.xml { haml :"drivers/show" }
- format.json { @driver.to_json }
+ format.json { { :driver => @driver.merge(:id => params[:id]) }.to_json }
format.html { haml :"drivers/show" }
end
end
--
1.8.0.2