mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 16:19:13 +02:00
A couple of fixes
This commit is contained in:
@@ -576,7 +576,7 @@ def _add_directive(block, directive, replace):
|
||||
if location is None or (isinstance(directive_name, str) and
|
||||
directive_name in REPEATABLE_DIRECTIVES):
|
||||
block.append(directive)
|
||||
_comment_directive(block, len(block))
|
||||
_comment_directive(block, len(block) - 1)
|
||||
elif block[location][1] != directive_value:
|
||||
raise errors.MisconfigurationError(
|
||||
'tried to insert directive "{0}" but found '
|
||||
|
||||
Reference in New Issue
Block a user