projects
/
ganeti-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Noded: make "bootstrap" a constant
[ganeti-github.git]
/
lib
/
server
/
noded.py
diff --git
a/lib/server/noded.py
b/lib/server/noded.py
index
fa1e10f
..
a7fdf49
100644
(file)
--- a/
lib/server/noded.py
+++ b/
lib/server/noded.py
@@
-1266,7
+1266,6
@@
def SSLVerifyPeer(conn, cert, errnum, errdepth, ok):
"""
# some parameters are unused, but this is the API
# pylint: disable=W0613
"""
# some parameters are unused, but this is the API
# pylint: disable=W0613
- _BOOTSTRAP = "bootstrap"
sstore = ssconf.SimpleStore()
try:
candidate_certs = sstore.GetMasterCandidatesCertMap()
sstore = ssconf.SimpleStore()
try:
candidate_certs = sstore.GetMasterCandidatesCertMap()
@@
-1276,7
+1275,7
@@
def SSLVerifyPeer(conn, cert, errnum, errdepth, ok):
candidate_certs = None
if not candidate_certs:
candidate_certs = {
candidate_certs = None
if not candidate_certs:
candidate_certs = {
- _BOOTSTRAP: utils.GetCertificateDigest(
+ constants.CRYPTO_BOOTSTRAP: utils.GetCertificateDigest(
cert_filename=pathutils.NODED_CERT_FILE)}
return cert.digest("sha1") in candidate_certs.values()
# pylint: enable=W0613
cert_filename=pathutils.NODED_CERT_FILE)}
return cert.digest("sha1") in candidate_certs.values()
# pylint: enable=W0613