mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
Accept --preferred-challenges "dns-01, http-01"
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user