aboutsummaryrefslogtreecommitdiff
path: root/tool/modules/template.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-19 17:35:41 +0800
committercrupest <crupest@outlook.com>2022-11-19 17:35:41 +0800
commit8e9dd42976020d501c6fb02fc67a0f4e93a5c96b (patch)
treee29a4c2ca46103f6ba29a424b3b208f26534551f /tool/modules/template.py
parenta1bd1a5edf58458b9058b170cdd9cb091ddf629c (diff)
downloadcrupest-8e9dd42976020d501c6fb02fc67a0f4e93a5c96b.tar.gz
crupest-8e9dd42976020d501c6fb02fc67a0f4e93a5c96b.tar.bz2
crupest-8e9dd42976020d501c6fb02fc67a0f4e93a5c96b.zip
Fix nginx generation issue.
Diffstat (limited to 'tool/modules/template.py')
-rw-r--r--tool/modules/template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/modules/template.py b/tool/modules/template.py
index 444fbac..9747af1 100644
--- a/tool/modules/template.py
+++ b/tool/modules/template.py
@@ -28,5 +28,5 @@ class Template:
if var not in config:
raise ValueError(f"Missing config var {var}.")
result = result.replace("$" + var, config[var])
- re.sub(r"\$\{\s*" + var + r"\s*\}", config[var], result)
+ result = re.sub(r"\$\{\s*" + var + r"\s*\}", config[var], result)
return result