mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
add comment
This commit is contained in:
parent
cf135083cf
commit
11f7730d6e
1 changed files with 2 additions and 0 deletions
|
|
@ -656,6 +656,8 @@ def _add_directive(block, directive, replace, insert_at_top):
|
|||
|
||||
if can_append(location, directive_name):
|
||||
if insert_at_top:
|
||||
# Add a newline so the comment doesn't comment
|
||||
# out existing directives
|
||||
block.insert(0, nginxparser.UnspacedList('\n'))
|
||||
block.insert(0, directive)
|
||||
comment_directive(block, 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue