mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 08:03:19 +02:00
Mitigate problems for people who run without -n (#3916)
* CLI flag for forcing interactivity * add --force-interactive * Add force_interactive error checking and tests * Add force_interactive parameter to FileDisplay * add _can_interact * Add _return_default * Add **unused_kwargs to NoninteractiveDisplay * improve _return_default assertion * Change IDisplay calls and write tests * Document force_interactive in interfaces.py * Don't force_interactive with a new prompt * Warn when skipping an interaction for the first time * add specific logger.debug message
This commit is contained in:
committed by
Peter Eckersley
parent
81fd0cd32c
commit
ae379568b1
@@ -251,7 +251,8 @@ s.serve_forever()" """
|
||||
if not (self.conf("test-mode") or self.conf("public-ip-logging-ok")):
|
||||
if not zope.component.getUtility(interfaces.IDisplay).yesno(
|
||||
self.IP_DISCLAIMER, "Yes", "No",
|
||||
cli_flag="--manual-public-ip-logging-ok"):
|
||||
cli_flag="--manual-public-ip-logging-ok",
|
||||
force_interactive=True):
|
||||
raise errors.PluginError("Must agree to IP logging to proceed")
|
||||
else:
|
||||
self.config.namespace.manual_public_ip_logging_ok = True
|
||||
|
||||
Reference in New Issue
Block a user