Small adjustement for variable

This commit is contained in:
VirtuBox
2019-08-30 07:59:44 +02:00
parent 6c70ba7824
commit ebea1e5e7d

View File

@@ -1481,10 +1481,10 @@ def checkWildcardExist(self, wo_domain_name):
# open file
with open('/var/lib/wo/cert.csv', 'rt') as wo_cert:
reader = csv.reader(wo_cert, 'acmeconf')
wo_wildcard = "*.{0}".format(wo_domain_name)
wo_wildcard_domain = ("*.{0}".format(wo_domain_name))
try:
for row in reader:
if wo_wildcard in row[2]:
if wo_wildcard_domain in row[2]:
return True
break
else: