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
a30ec0c7
Commit
a30ec0c7
authored
Dec 16, 2015
by
yumaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 sudo 规则删除bug
parent
b8abedc5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
models.py
jasset/models.py
+1
-1
ansible_api.py
jperm/ansible_api.py
+1
-1
perm_sudo_list.html
templates/jperm/perm_sudo_list.html
+1
-1
No files found.
jasset/models.py
View file @
a30ec0c7
...
...
@@ -45,7 +45,7 @@ class IDC(models.Model):
phone
=
models
.
CharField
(
max_length
=
32
,
blank
=
True
,
null
=
True
,
default
=
''
,
verbose_name
=
u'联系电话'
)
address
=
models
.
CharField
(
max_length
=
128
,
blank
=
True
,
null
=
True
,
default
=
''
,
verbose_name
=
u"机房地址"
)
network
=
models
.
TextField
(
blank
=
True
,
null
=
True
,
default
=
''
,
verbose_name
=
u"IP地址段"
)
date_added
=
models
.
DateField
(
auto_now
=
True
,
default
=
''
,
null
=
True
)
date_added
=
models
.
DateField
(
auto_now
=
True
,
null
=
True
)
operator
=
models
.
CharField
(
max_length
=
32
,
blank
=
True
,
default
=
''
,
null
=
True
,
verbose_name
=
u"运营商"
)
comment
=
models
.
CharField
(
max_length
=
128
,
blank
=
True
,
default
=
''
,
null
=
True
,
verbose_name
=
u"备注"
)
...
...
jperm/ansible_api.py
View file @
a30ec0c7
...
...
@@ -16,7 +16,7 @@ from passlib.hash import sha512_crypt
from
django.template.loader
import
get_template
from
django.template
import
Context
from
utils
import
get_rand_pass
from
jumpserver.api
import
logger
...
...
templates/jperm/perm_sudo_list.html
View file @
a30ec0c7
...
...
@@ -89,7 +89,7 @@ function remove_sudo(sudo_id){
if
(
confirm
(
"确认删除"
))
{
$
.
ajax
({
type
:
"POST"
,
url
:
"/jperm/sudo/
perm_sudo_delete
/"
,
url
:
"/jperm/sudo/
del
/"
,
data
:
"id="
+
sudo_id
,
success
:
function
(
msg
){
alert
(
"成功: "
+
msg
);
...
...
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