@@ -1953,13 +1953,13 @@ def _generate_confs_prepare(
1953
1953
raw_sha256 = openssl_proc .stdout .read ().strip ()
1954
1954
# NOTE: openssl outputs something like 'SHA256 Fingerprint=BLA'
1955
1955
# but algo part case may vary - split and take last part.
1956
- daemon_keycert_sha256 = raw_sha256 .split (" Fingerprint=" , 1 )[- 1 ]
1956
+ cur_keycert_sha256 = raw_sha256 .split (" Fingerprint=" , 1 )[- 1 ]
1957
1957
except Exception as exc :
1958
1958
print ("ERROR: failed to extract sha256 fingerprint of %s: %s" %
1959
1959
(key_path , exc ))
1960
- daemon_keycert_sha256 = ''
1960
+ cur_keycert_sha256 = ''
1961
1961
if daemon_keycert_sha256 == keyword_auto :
1962
- user_dict ['__DAEMON_KEYCERT_SHA256__' ] = daemon_keycert_sha256
1962
+ user_dict ['__DAEMON_KEYCERT_SHA256__' ] = cur_keycert_sha256
1963
1963
if user_dict ['__DAEMON_PUBKEY__' ]:
1964
1964
if not os .path .isfile (os .path .expanduser ("%(__DAEMON_PUBKEY__)s" %
1965
1965
user_dict )):
@@ -1983,19 +1983,19 @@ def _generate_confs_prepare(
1983
1983
pubkey .strip ().split ()[1 ].encode ('ascii' ))
1984
1984
raw_md5 = make_simple_hash (b64_key )
1985
1985
# reformat into colon-spearated octets
1986
- daemon_pubkey_md5 = ':' .join (a + b for a , b in zip (raw_md5 [::2 ],
1987
- raw_md5 [1 ::2 ]))
1986
+ cur_pubkey_md5 = ':' .join (a + b for a , b in zip (raw_md5 [::2 ],
1987
+ raw_md5 [1 ::2 ]))
1988
1988
raw_sha256 = make_safe_hash (b64_key , False )
1989
- daemon_pubkey_sha256 = base64 .b64encode (raw_sha256 ).rstrip ('=' )
1989
+ cur_pubkey_sha256 = base64 .b64encode (raw_sha256 ).rstrip ('=' )
1990
1990
except Exception as exc :
1991
1991
print ("ERROR: failed to extract fingerprints of %s : %s" %
1992
1992
(pubkey_path , exc ))
1993
- daemon_pubkey_md5 = ''
1994
- daemon_pubkey_sha256 = ''
1993
+ cur_pubkey_md5 = ''
1994
+ cur_pubkey_sha256 = ''
1995
1995
if daemon_pubkey_md5 == keyword_auto :
1996
- user_dict ['__DAEMON_PUBKEY_MD5__' ] = daemon_pubkey_md5
1996
+ user_dict ['__DAEMON_PUBKEY_MD5__' ] = cur_pubkey_md5
1997
1997
if daemon_pubkey_sha256 == keyword_auto :
1998
- user_dict ['__DAEMON_PUBKEY_SHA256__' ] = daemon_pubkey_sha256
1998
+ user_dict ['__DAEMON_PUBKEY_SHA256__' ] = cur_pubkey_sha256
1999
1999
2000
2000
# Enable Debian/Ubuntu specific lines only there
2001
2001
if user_dict ['__DISTRO__' ].lower () in ('ubuntu' , 'debian' ):
0 commit comments