mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
letsencrypt: Fix regression with comparing certificate
Closes: #2295. _assert_managed_path() expects pathlib.Path. Due to a typo, a string is being sent instead. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
bcbd623f00
commit
4c5344dfa0
@ -272,8 +272,8 @@ def compare_certificate(managing_app: str, source_private_key: str,
|
||||
|
||||
private_key_path = pathlib.Path(private_key)
|
||||
certificate_path = pathlib.Path(certificate)
|
||||
_assert_managed_path(managing_app, private_key)
|
||||
_assert_managed_path(managing_app, certificate)
|
||||
_assert_managed_path(managing_app, private_key_path)
|
||||
_assert_managed_path(managing_app, certificate_path)
|
||||
|
||||
result = False
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user