配置文件修改
This commit is contained in:
@@ -135,7 +135,8 @@ path = sys.argv[1]
|
||||
with open(path) as f:
|
||||
content = f.read()
|
||||
|
||||
content = re.sub(r'(\benable:\s*)\S+', r'\1aws', content)
|
||||
# 只替换 object: 块下的 enable: 字段,避免误改 prometheus/ratelimiter/circuitBreaker 的布尔值
|
||||
content = re.sub(r'(^object:.*?\n enable:\s*)\S+', r'\1aws', content, count=1, flags=re.MULTILINE | re.DOTALL)
|
||||
|
||||
endpoint_line = ""
|
||||
endpoint_val = "${OPENIM_AWS_ENDPOINT:-}"
|
||||
|
||||
Reference in New Issue
Block a user