mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
Variable key already existing
This commit is contained in:
@@ -99,8 +99,8 @@ class NginxDvsni(common.TLSSNI01):
|
||||
for key, body in main:
|
||||
if key == ['http']:
|
||||
found_bucket = False
|
||||
for key, _ in body:
|
||||
if key == bucket_directive[0]:
|
||||
for k, _ in body:
|
||||
if k == bucket_directive[0]:
|
||||
found_bucket = True
|
||||
if not found_bucket:
|
||||
body.insert(0, bucket_directive)
|
||||
|
||||
Reference in New Issue
Block a user