mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-11-05 07:21:36 +08:00
fix(lbagent): telegraf configuration panic (#22097)
This commit is contained in:
@@ -214,7 +214,9 @@ func (s *STelegraf) GetConfig(kwargs map[string]interface{}) string {
|
||||
"/run/onecloud/containerd/",
|
||||
"/var/lib/",
|
||||
}
|
||||
ignorePathSegments = append(ignorePathSegments, kwargs["server_path"].(string))
|
||||
if sp, ok := kwargs["server_path"]; ok {
|
||||
ignorePathSegments = append(ignorePathSegments, sp.(string))
|
||||
}
|
||||
for i := range ignorePathSegments {
|
||||
ignorePathSegments[i] = fmt.Sprintf("%q", ignorePathSegments[i])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user