Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.libnetworkcache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.libnetworkcache
Commits
c758f22d
Commit
c758f22d
authored
Dec 03, 2019
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix "Ignore bad signature certificates with message"
python 3 compatibility
parent
0578762b
Pipeline
#6935
running with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
slapos/libnetworkcache.py
slapos/libnetworkcache.py
+1
-1
No files found.
slapos/libnetworkcache.py
View file @
c758f22d
...
@@ -217,7 +217,7 @@ class NetworkcacheClient(object):
...
@@ -217,7 +217,7 @@ class NetworkcacheClient(object):
try
:
try
:
loaded_certificate
=
crypto
.
load_certificate
(
crypto
.
FILETYPE_PEM
,
certificate
)
loaded_certificate
=
crypto
.
load_certificate
(
crypto
.
FILETYPE_PEM
,
certificate
)
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
info
(
'Ignored wrong certificate, reason:
\
n
%s, offending certificate:
\
n
%s'
,
e
.
message
,
certificate
)
logger
.
info
(
'Ignored wrong certificate, reason:
\
n
%s, offending certificate:
\
n
%s'
,
e
,
certificate
)
self
.
signature_certificate_list
.
append
(
loaded_certificate
)
self
.
signature_certificate_list
.
append
(
loaded_certificate
)
# NetworkcacheClient context manager catches all exceptions and logs them
# NetworkcacheClient context manager catches all exceptions and logs them
...
...
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