mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 00:00:44 +02:00
don't iDisplay if logging
This commit is contained in:
@@ -1271,7 +1271,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
|
||||
"""
|
||||
self.config_test()
|
||||
logger.debug(self.reverter.view_config_changes())
|
||||
logger.debug(self.reverter.view_config_changes(logging=True))
|
||||
self._reload()
|
||||
|
||||
def _reload(self):
|
||||
|
||||
@@ -94,7 +94,7 @@ class Reverter(object):
|
||||
"Unable to load checkpoint during rollback")
|
||||
rollback -= 1
|
||||
|
||||
def view_config_changes(self):
|
||||
def view_config_changes(self, logging=False):
|
||||
"""Displays all saved checkpoints.
|
||||
|
||||
All checkpoints are printed by
|
||||
@@ -144,6 +144,8 @@ class Reverter(object):
|
||||
|
||||
output.append(os.linesep)
|
||||
|
||||
if logging:
|
||||
return os.linesep.join(output)
|
||||
zope.component.getUtility(interfaces.IDisplay).notification(
|
||||
os.linesep.join(output), display_util.HEIGHT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user