mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
test if the two dicts are equal instead of finding the actual changes, thus avoiding having to deal with webroot_map being a list
This commit is contained in:
parent
68781a9813
commit
15d25ff257
1 changed files with 1 additions and 4 deletions
|
|
@ -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.' + \
|
||||
|
|
|
|||
Loading…
Reference in a new issue