deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From efcas...@gmail.com
Subject [PATCH] Adds JSON as a supported rtype (run_command) - DTACLOUD-459
Date Fri, 08 Feb 2013 14:03:59 GMT
From: efcasado <efcasado@gmail.com>

---
 server/lib/deltacloud/collections/instances.rb |    1 +
 1 file changed, 1 insertion(+)

diff --git a/server/lib/deltacloud/collections/instances.rb b/server/lib/deltacloud/collections/instances.rb
index adddacf..824ba15 100644
--- a/server/lib/deltacloud/collections/instances.rb
+++ b/server/lib/deltacloud/collections/instances.rb
@@ -115,6 +115,7 @@ module Deltacloud::Collections
           respond_to do |format|
             format.xml { haml :"instances/run" }
             format.html { haml :"instances/run" }
+            format.json { JSON::dump({:instance => { :id => params[:id], :public_address
=> @output.ssh.network.ip, :command => @output.ssh.command, :output => @output.body}})}
           end
         end
       end
-- 
1.7.10.2 (Apple Git-33)


Mime
View raw message