mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
Add comments to the VNC implementation
This commit is contained in:
1 parent
02bec9360c
commit
c8df2e9ab8
2 files changed
+9
-1
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user