Open
Description
Report a bug.
SyncFile step contains three steps:
- Read primary config file to a temporary file.
- Filter key and value according to delimtier(such as '=' or ':') and mutate item according vaiable that user configure.
- Write modified content back to file.
you can see at
curveadm/internal/task/step/file.go
Line 240 in 48abdf1
However, configuration items containing middle spaces cannot be filtered. If one or more spaces, they will be truncated.
for example:
s3.user_agent=S3 Browser
will be filter as follow:
s3.user_agent=S3
The reason may be REGEX_KV_SPLIT
curveadm/internal/task/step/file.go
Line 44 in 48abdf1