X-Git-Url: http://git.ganeti.org/?p=ganeti-github.git;a=blobdiff_plain;f=lib%2Fserver%2Fnoded.py;h=a7fdf49ff76c344be07f8023bf31b1ae77a5b4dc;hp=fa1e10f0368bd21ea9a1ca497206181a76b229e0;hb=38c0d67dd969b83e95a2d419170c2a08994e43d1;hpb=8195f50d53a153488e7af2bc1d93b291cb9739dd diff --git a/lib/server/noded.py b/lib/server/noded.py index fa1e10f..a7fdf49 100644 --- 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 - _BOOTSTRAP = "bootstrap" 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 = { - _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