From: Michal Fojtik <[email protected]>
Signed-off-by: Michal fojtik <[email protected]> --- 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
