mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
Fix plugins command
This commit is contained in:
parent
f38911eb10
commit
73ac2e36cc
2 changed files with 4 additions and 3 deletions
|
|
@ -168,10 +168,10 @@ def config_changes(unused_args, config, unused_plugins):
|
|||
|
||||
def plugins_cmd(args, config, plugins): # TODO: Use IDiplay rathern than print
|
||||
"""List plugins."""
|
||||
logging.debug("Discovered plugins: %s", plugins)
|
||||
logging.debug("Expected interfaces: %s", args.ifaces)
|
||||
|
||||
ifaces = [] if args.ifaces is None else args.ifaces
|
||||
filtered = plugins.ifaces(*((iface,) for iface in ifaces))
|
||||
filtered = plugins.ifaces(ifaces)
|
||||
logging.debug("Filtered plugins: %r", filtered)
|
||||
|
||||
if not args.init and not args.prepare:
|
||||
|
|
@ -352,6 +352,8 @@ def main(args=sys.argv[1:]):
|
|||
if args.use_curses:
|
||||
logger.addHandler(log.DialogHandler())
|
||||
|
||||
logging.debug("Discovered plugins: %r", plugins)
|
||||
|
||||
if not os.geteuid() == 0:
|
||||
logging.warning(
|
||||
"Root (sudo) is required to run most of letsencrypt functionality.")
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ class CLITest(unittest.TestCase):
|
|||
for args in itertools.chain(
|
||||
*(itertools.combinations(flags, r)
|
||||
for r in xrange(len(flags)))):
|
||||
print args
|
||||
self._call(['plugins',] + list(args))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue