Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
01bef95e
Commit
01bef95e
authored
Jul 31, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'github/org' into org
parents
672dd660
6ce813fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
apps.py
apps/ops/apps.py
+4
-0
adhoc.py
apps/ops/models/adhoc.py
+2
-1
api_urls.py
apps/terminal/urls/api_urls.py
+1
-1
No files found.
apps/ops/apps.py
View file @
01bef95e
...
...
@@ -7,5 +7,9 @@ class OpsConfig(AppConfig):
name
=
'ops'
def
ready
(
self
):
from
orgs.models
import
Organization
from
orgs.utils
import
set_current_org
set_current_org
(
Organization
.
root
())
super
()
.
ready
()
from
.celery
import
signal_handler
apps/ops/models/adhoc.py
View file @
01bef95e
...
...
@@ -263,7 +263,8 @@ class AdHoc(models.Model):
}
:return:
"""
self
.
_become
=
signer
.
sign
(
json
.
dumps
(
item
))
.
decode
(
'utf-8'
)
# self._become = signer.sign(json.dumps(item)).decode('utf-8')
self
.
_become
=
signer
.
sign
(
json
.
dumps
(
item
))
@property
def
options
(
self
):
...
...
apps/terminal/urls/api_urls.py
View file @
01bef95e
...
...
@@ -25,7 +25,7 @@ urlpatterns = [
path
(
'tasks/kill-session/'
,
api
.
KillSessionAPI
.
as_view
(),
name
=
'kill-session'
),
path
(
'terminal/<uuid:terminal>/access-key/'
,
api
.
TerminalTokenApi
.
as_view
(),
name
=
'terminal-access-key'
),
path
(
'terminal/config'
,
api
.
TerminalConfig
.
as_view
(),
name
=
'terminal-config'
),
path
(
'terminal/config
/
'
,
api
.
TerminalConfig
.
as_view
(),
name
=
'terminal-config'
),
# v2: get session's replay
# path('v2/sessions/<uuid:pk>/replay/',
# api.SessionReplayV2ViewSet.as_view({'get': 'retrieve'}),
...
...
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