@@ -69,8 +69,8 @@ import (
6969//
7070// component:
7171// config_field: |
72- // $yamltemplate: /etc/component_template .yaml
73- // logs_path: /var/logs/component.log
72+ // $yamltemplate: /etc/log_template .yaml
73+ // logs_path: /var/logs/
7474// timeout: 10s
7575//
7676// Not all config sources need these optional parameters, they are used to provide extra control when
@@ -339,7 +339,7 @@ func parseCfgSrc(s string) (cfgSrcName, selector string, params interface{}, err
339339 const selectorDelim string = "?"
340340 parts = strings .SplitN (parts [1 ], selectorDelim , 2 )
341341 selector = strings .Trim (parts [0 ], " " )
342-
342+
343343 if len (parts ) == 2 {
344344 paramsPart := parts [1 ]
345345 params , err = parseParamsAsURLQuery (paramsPart )
@@ -367,7 +367,7 @@ func parseParamsAsURLQuery(s string) (interface{}, error) {
367367 params [k ] = nil
368368 case 1 :
369369 var iface interface {}
370- if err : = yaml .Unmarshal ([]byte (v [0 ]), & iface ); err != nil {
370+ if err = yaml .Unmarshal ([]byte (v [0 ]), & iface ); err != nil {
371371 return nil , err
372372 }
373373 params [k ] = iface
@@ -376,7 +376,7 @@ func parseParamsAsURLQuery(s string) (interface{}, error) {
376376 elemSlice := make ([]interface {}, 0 , len (v ))
377377 for _ , elem := range v {
378378 var iface interface {}
379- if err : = yaml .Unmarshal ([]byte (elem ), & iface ); err != nil {
379+ if err = yaml .Unmarshal ([]byte (elem ), & iface ); err != nil {
380380 return nil , err
381381 }
382382 elemSlice = append (elemSlice , iface )
0 commit comments