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:
Sunil Mohan Adapa 2022-10-24 12:25:58 -07:00 committed by James Valleroy
parent bcbd623f00
commit 4c5344dfa0
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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: