1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-24 19:22:07 +03:00

don't ask for donations if renewing

This commit is contained in:
Noah Swartz
2016-02-02 16:52:12 -08:00
parent 9e36c5b36d
commit 9fde7fe476

View File

@@ -383,7 +383,7 @@ def _report_new_cert(cert_path, fullchain_path):
def _suggest_donation_if_appropriate(config):
"""Potentially suggest a donation to support Let's Encrypt."""
if not config.staging: # --dry-run implies --staging
if not config.staging or config.verb == "renew": # --dry-run implies --staging
reporter_util = zope.component.getUtility(interfaces.IReporter)
msg = ("If you like Let's Encrypt, please consider supporting our work by:\n\n"
"Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate\n"