From 741a57c976f53f36e38a91c252186f5098e941df Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Wed, 21 Sep 2016 15:02:03 -0700 Subject: [PATCH] Accept --preferred-challenges "dns-01, http-01" --- certbot/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot/cli.py b/certbot/cli.py index 0fbf6eefb..4d91a1904 100644 --- a/certbot/cli.py +++ b/certbot/cli.py @@ -1048,7 +1048,7 @@ class _PrefChallAction(argparse.Action): """Action class for parsing preferred challenges.""" def __call__(self, parser, namespace, pref_challs, option_string=None): - challs = pref_challs.split(",") + challs = [c.strip() for c in pref_challs.split(",")] unrecognized = ", ".join(name for name in challs if name not in challenges.Challenge.TYPES) if unrecognized: