Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
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
coco
Commits
8eeb3d50
Commit
8eeb3d50
authored
May 20, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 升级依赖包版本,搜索忽略大小写
parent
62d5de14
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
conf.py
coco/conf.py
+1
-1
utils.py
coco/utils.py
+2
-2
requirements.txt
requirements/requirements.txt
+5
-5
No files found.
coco/conf.py
View file @
8eeb3d50
...
@@ -213,7 +213,7 @@ class Config(dict):
...
@@ -213,7 +213,7 @@ class Config(dict):
filename
=
os
.
path
.
join
(
self
.
root_path
,
filename
)
filename
=
os
.
path
.
join
(
self
.
root_path
,
filename
)
try
:
try
:
with
open
(
filename
)
as
f
:
with
open
(
filename
)
as
f
:
obj
=
yaml
.
load
(
f
)
obj
=
yaml
.
safe_
load
(
f
)
except
IOError
as
e
:
except
IOError
as
e
:
if
silent
and
e
.
errno
in
(
errno
.
ENOENT
,
errno
.
EISDIR
):
if
silent
and
e
.
errno
in
(
errno
.
ENOENT
,
errno
.
EISDIR
):
return
False
return
False
...
...
coco/utils.py
View file @
8eeb3d50
...
@@ -161,7 +161,7 @@ def is_obj_attr_has(obj, val, attrs=("hostname", "ip", "comment")):
...
@@ -161,7 +161,7 @@ def is_obj_attr_has(obj, val, attrs=("hostname", "ip", "comment")):
hasattr
(
obj
,
attr
)
and
isinstance
(
hasattr
(
obj
,
attr
),
(
str
,
int
))]
hasattr
(
obj
,
attr
)
and
isinstance
(
hasattr
(
obj
,
attr
),
(
str
,
int
))]
for
v
in
vals
:
for
v
in
vals
:
if
str
(
v
)
.
find
(
val
)
!=
-
1
:
if
str
(
v
)
.
lower
()
.
find
(
val
.
lower
()
)
!=
-
1
:
return
True
return
True
return
False
return
False
...
@@ -173,7 +173,7 @@ def is_obj_attr_eq(obj, val, attrs=("id", "hostname", "ip")):
...
@@ -173,7 +173,7 @@ def is_obj_attr_eq(obj, val, attrs=("id", "hostname", "ip")):
vals
=
[
getattr
(
obj
,
attr
)
for
attr
in
attrs
if
hasattr
(
obj
,
attr
)]
vals
=
[
getattr
(
obj
,
attr
)
for
attr
in
attrs
if
hasattr
(
obj
,
attr
)]
for
v
in
vals
:
for
v
in
vals
:
if
str
(
v
)
==
str
(
val
):
if
str
(
v
)
.
lower
()
==
str
(
val
)
.
lower
(
):
return
True
return
True
return
False
return
False
...
...
requirements/requirements.txt
View file @
8eeb3d50
...
@@ -16,13 +16,13 @@ Flask==1.0.2
...
@@ -16,13 +16,13 @@ Flask==1.0.2
Flask-SocketIO==2.9.2
Flask-SocketIO==2.9.2
idna==2.6
idna==2.6
itsdangerous==0.24
itsdangerous==0.24
Jinja2==2.10
Jinja2==2.10
.1
jmespath==0.9.3
jmespath==0.9.3
jms-storage==0.0.22
jms-storage==0.0.22
jumpserver-python-sdk==0.0.58
jumpserver-python-sdk==0.0.58
MarkupSafe==1.0
MarkupSafe==1.0
oss2==2.4.0
oss2==2.4.0
paramiko==2.4.
1
paramiko==2.4.
2
psutil==5.4.1
psutil==5.4.1
pyasn1==0.4.2
pyasn1==0.4.2
pycparser==2.19
pycparser==2.19
...
@@ -33,14 +33,14 @@ python-engineio==2.1.0
...
@@ -33,14 +33,14 @@ python-engineio==2.1.0
python-gssapi==0.6.4
python-gssapi==0.6.4
python-socketio==1.8.3
python-socketio==1.8.3
pytz==2018.3
pytz==2018.3
requests==2.
18.4
requests==2.
22.0
s3transfer==0.1.13
s3transfer==0.1.13
simplejson==3.13.2
simplejson==3.13.2
six==1.11.0
six==1.11.0
tornado==4.5.2
tornado==4.5.2
urllib3==1.22
urllib3==1.2
5.
2
wcwidth==0.1.7
wcwidth==0.1.7
eventlet==0.24.1
eventlet==0.24.1
Werkzeug==0.14.1
Werkzeug==0.14.1
treelib==1.5.3
treelib==1.5.3
pyyaml==3.13
PyYAML==5.1
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