mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-18 18:07:22 +01:00
Fixed FURB113 (repeated-append)
This commit is contained in:
committed by
Joshua Tauberer
parent
e8d1c037cb
commit
541f31b1ba
@@ -674,8 +674,7 @@ def hash_dnssec_keys(domain, env):
|
||||
keydata = []
|
||||
for keytype, keyfn in sorted(find_dnssec_signing_keys(domain, env)):
|
||||
oldkeyfn = os.path.join(env['STORAGE_ROOT'], 'dns/dnssec', keyfn + ".private")
|
||||
keydata.append(keytype)
|
||||
keydata.append(keyfn)
|
||||
keydata.extend((keytype, keyfn))
|
||||
with open(oldkeyfn) as fr:
|
||||
keydata.append( fr.read() )
|
||||
keydata = "".join(keydata).encode("utf8")
|
||||
|
||||
Reference in New Issue
Block a user