import sys, os, json, jinja2, redis
from jinja2 import Template

i_key = "owner-info"
r_server = redis.StrictRedis('127.0.0.1', db=2)
json_data = r_server.get(i_key)
if json_data is not None:
    email = data['Email']

config_template = open('/opt/plugins/cluster/ingress/kub/lego_configmap.template').read()
template = Template(config_template)
config = (template.render(email=email))
open("/opt/plugins/cluster/ingress/kub/lego_configmap.yaml", "w").write(config)

@@ -185,16 +185,49 @@
 t None:%0A
+    data = json.loads(json_data)%0A
     emai

fix ingress script