Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
7f6baffa
authored
Mar 18, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: create activity on console access
parent
9a4d49e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
circle/dashboard/views.py
+8
-6
No files found.
circle/dashboard/views.py
View file @
7f6baffa
...
@@ -182,12 +182,14 @@ class VmDetailVncTokenView(CheckedDetailView):
...
@@ -182,12 +182,14 @@ class VmDetailVncTokenView(CheckedDetailView):
if
not
self
.
object
.
has_level
(
request
.
user
,
'operator'
):
if
not
self
.
object
.
has_level
(
request
.
user
,
'operator'
):
raise
PermissionDenied
()
raise
PermissionDenied
()
if
self
.
object
.
node
:
if
self
.
object
.
node
:
port
=
self
.
object
.
vnc_port
with
instance_activity
(
code_suffix
=
'console-accessed'
,
host
=
str
(
self
.
object
.
node
.
host
.
ipv4
)
instance
=
self
.
object
,
user
=
request
.
user
,
value
=
signing
.
dumps
({
'host'
:
host
,
concurrency_check
=
False
):
'port'
:
port
},
port
=
self
.
object
.
vnc_port
key
=
getenv
(
"PROXY_SECRET"
,
'asdasd'
)),
host
=
str
(
self
.
object
.
node
.
host
.
ipv4
)
return
HttpResponse
(
'vnc/?d=
%
s'
%
value
)
value
=
signing
.
dumps
({
'host'
:
host
,
'port'
:
port
},
key
=
getenv
(
"PROXY_SECRET"
,
'asdasd'
)),
return
HttpResponse
(
'vnc/?d=
%
s'
%
value
)
else
:
else
:
raise
Http404
()
raise
Http404
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment