A couple of fixes

This commit is contained in:
Peter Eckersley
2016-07-21 13:26:57 -07:00
parent 2ce5b195e5
commit e5cb04ee7d
+1 -1
View File
@@ -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 '