-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
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
func (s *SyncFile) Execute(ctx *context.Context) error {
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
REGEX_KV_SPLIT = "^(([^%s]+)%s\\s*)([^\\s#]*)" // key: mu[2] value: mu[3] |