From 2ce5b195e54d50881ebb506e070cb74108b38384 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Mon, 18 Jul 2016 18:23:54 -0700 Subject: [PATCH] check certbot --- certbot-nginx/certbot_nginx/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot-nginx/certbot_nginx/parser.py b/certbot-nginx/certbot_nginx/parser.py index a79136836..b7bfebb32 100644 --- a/certbot-nginx/certbot_nginx/parser.py +++ b/certbot-nginx/certbot_nginx/parser.py @@ -536,7 +536,7 @@ def _comment_directive(block, location): # add_directives next_entry = "\n" if isinstance(next_entry, list): - if COMMENT[-1] in next_entry[-1]: + if "Certbot" in next_entry[-1]: return next_entry = next_entry.spaced[0] block.insert(location + 1, COMMENT[:])