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
ef73469d
Unverified
Commit
ef73469d
authored
Aug 12, 2019
by
老广
Committed by
GitHub
Aug 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3107 from jumpserver/bugfix
[Update] 修改避免每次刷新asset user的可连接性
parents
2d7d9d4d
05e4e730
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
base.py
apps/assets/models/base.py
+0
-3
settings.py
apps/jumpserver/settings.py
+3
-0
No files found.
apps/assets/models/base.py
View file @
ef73469d
...
...
@@ -164,9 +164,6 @@ class AssetUser(OrgModelMixin):
def
set_asset_connectivity
(
self
,
asset
,
c
):
key
=
self
.
get_asset_connectivity_key
(
asset
)
Connectivity
.
set
(
key
,
c
)
# 当为某个系统用户或管理用户设置的的时候,失效掉他们的连接数量
amount_key
=
self
.
CONNECTIVITY_AMOUNT_CACHE_KEY
.
format
(
self
.
username
,
'*'
)
cache
.
delete_pattern
(
amount_key
)
def
get_asset_user
(
self
,
asset
):
from
..backends
import
AssetUserManager
...
...
apps/jumpserver/settings.py
View file @
ef73469d
...
...
@@ -54,6 +54,9 @@ LOG_LEVEL = CONFIG.LOG_LEVEL
ALLOWED_HOSTS
=
[
'*'
]
# Max post update field num
DATA_UPLOAD_MAX_NUMBER_FIELDS
=
10000
# Application definition
INSTALLED_APPS
=
[
...
...
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