From 15d25ff257dbaecfd1c1ed0da34449700c89a515 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Tue, 29 Nov 2022 17:00:37 -0800 Subject: [PATCH] test if the two dicts are equal instead of finding the actual changes, thus avoiding having to deal with webroot_map being a list --- certbot/certbot/_internal/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/certbot/certbot/_internal/main.py b/certbot/certbot/_internal/main.py index 37d657fce..1050dbbf0 100644 --- a/certbot/certbot/_internal/main.py +++ b/certbot/certbot/_internal/main.py @@ -1676,12 +1676,9 @@ def _report_reconfigure_results(renewal_file: str, orig_renewal_conf: configobj. f'error parsing {renewal_file}') orig_renewal_params = orig_renewal_conf['renewalparams'] - orig_renewal_params_set = set(orig_renewal_params.items()) final_renewal_params = final_renewal_conf['renewalparams'] - final_renewal_params_set = set(final_renewal_params.items()) - changes = orig_renewal_params_set ^ final_renewal_params_set - if len(changes) == 0: + if final_renewal_params == orig_renewal_params: success_message = '\nNo changes were made to the renewal configuration.' else: success_message = '\nSuccessfully updated configuration.' + \