From: efcasado <[email protected]>
---
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)