Fix proxy table json generation

parent 1ce3bb3f
...@@ -246,8 +246,9 @@ class Recipe(BaseSlapRecipe): ...@@ -246,8 +246,9 @@ class Recipe(BaseSlapRecipe):
for rewrite_rule in rewrite_rule_list: for rewrite_rule in rewrite_rule_list:
rewrite_part = self.substituteTemplate( rewrite_part = self.substituteTemplate(
self.getTemplateFilename('proxytable-host.json.in'), rewrite_rule) self.getTemplateFilename('proxytable-host.json.in'), rewrite_rule)
proxy_table_content = """%s proxy_table_content = """%s%s,""" % (proxy_table_content, rewrite_part)
%s""" % (proxy_table_content, rewrite_part) proxy_table_content = """%s%s""" % (proxy_table_content,
self.getTemplateFilename('proxytable-vifib-snippet.json.in'))
proxy_table_content = '%s}' % proxy_table_content proxy_table_content = '%s}' % proxy_table_content
return proxy_table_content return proxy_table_content
......
"/%(reference)s": { "/%(reference)s": {
"port": %(port)s, "port": %(port)s,
"host": "%(host)s", "host": "%(host)s",
"https": %(https)s "https": %(https)s
} }
\ No newline at end of file
"/domain": {
"port": 4443,
"host":"vifib",
"https": true
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment