letsencrypt argument for vhosts is optionaly, do not crash
This commit is contained in:
parent
7350ebc52f
commit
ca4380d4af
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ class FilterModule(object):
|
||||||
def nginx_vhosts_to_certificates(self, vhosts):
|
def nginx_vhosts_to_certificates(self, vhosts):
|
||||||
certs = {}
|
certs = {}
|
||||||
for i in vhosts.keys():
|
for i in vhosts.keys():
|
||||||
if not vhosts[i]['letsencrypt']:
|
if not vhosts[i].get('letsencrypt'):
|
||||||
continue
|
continue
|
||||||
certs['nginx_'+i] = {
|
certs['nginx_'+i] = {
|
||||||
'backend': 'letsencrypt',
|
'backend': 'letsencrypt',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue