Add comments to the VNC implementation

This commit is contained in:
Daniel Molina committed 2011-05-04 16:22:12 +02:00
1 parent 02bec9360c
commit c8df2e9ab8
2 files changed
+9 -1

No files matched your search

+3 -1
View File
@@ -219,7 +219,6 @@ class SunstoneServer
########################################################################
# VNC
########################################################################
def startvnc(id)
resource = retrieve_resource("vm", id)
if OpenNebula.is_error?(resource)
@@ -258,6 +257,9 @@ class SunstoneServer
return [200, info]
end
############################################################################
#
############################################################################
def stopvnc(id,pipe)
resource = retrieve_resource("vm", id)
if OpenNebula.is_error?(resource)
+6
View File
@@ -163,6 +163,9 @@ post '/:pool' do
@SunstoneServer.create_resource(params[:pool], request.body.read)
end
##############################################################################
# Stop the VNC Session of a target VM
##############################################################################
post '/vm/:id/stopvnc' do
vm_id = params[:id]
vnc_hash = session['vnc']
@@ -180,6 +183,9 @@ post '/vm/:id/stopvnc' do
rc
end
##############################################################################
# Start a VNC Session for a target VM
##############################################################################
post '/vm/:id/startvnc' do
vm_id = params[:id]