From 88ff26383b0a99456f484184c166163d58ee3ed0 Mon Sep 17 00:00:00 2001 From: Song Gao Date: Tue, 24 Sep 2024 12:28:26 +0800 Subject: [PATCH 1/2] fix Signed-off-by: Song Gao --- internal/conf/yaml_config_ops.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/conf/yaml_config_ops.go b/internal/conf/yaml_config_ops.go index 909adf844c..aa5e14efe9 100644 --- a/internal/conf/yaml_config_ops.go +++ b/internal/conf/yaml_config_ops.go @@ -501,7 +501,7 @@ func NewConfigOperatorFromConnectionStorage(pluginName string) (ConfigOperator, return nil, fmt.Errorf("file content is not right: %v", plgCnfs) } } else { - return nil, fmt.Errorf("not find the target connection type: %s", c.pluginName) + Log.Warnf("connection type %s have no config in connection.yaml", pluginName) } prefix := buildKey("connections", pluginName, "") From 47adac3bee1264fecb0d111bd5d4a07afc97454a Mon Sep 17 00:00:00 2001 From: Song Gao Date: Tue, 24 Sep 2024 14:18:29 +0800 Subject: [PATCH 2/2] address the comment Signed-off-by: Song Gao --- internal/conf/yaml_config_ops.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/conf/yaml_config_ops.go b/internal/conf/yaml_config_ops.go index aa5e14efe9..db1f37bd71 100644 --- a/internal/conf/yaml_config_ops.go +++ b/internal/conf/yaml_config_ops.go @@ -500,8 +500,6 @@ func NewConfigOperatorFromConnectionStorage(pluginName string) (ConfigOperator, } else { return nil, fmt.Errorf("file content is not right: %v", plgCnfs) } - } else { - Log.Warnf("connection type %s have no config in connection.yaml", pluginName) } prefix := buildKey("connections", pluginName, "")