From 114138d314c59eaa726e465f19bba3fc432ac953 Mon Sep 17 00:00:00 2001 From: Jeev B Date: Thu, 9 Nov 2023 22:56:32 -0800 Subject: [PATCH] Return templateLogPluginCollection instead of nil even if no plugins are specified Signed-off-by: Jeev B --- flyteplugins/go/tasks/logs/logging_utils.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/flyteplugins/go/tasks/logs/logging_utils.go b/flyteplugins/go/tasks/logs/logging_utils.go index 1dba7008f3..4978109458 100644 --- a/flyteplugins/go/tasks/logs/logging_utils.go +++ b/flyteplugins/go/tasks/logs/logging_utils.go @@ -109,10 +109,5 @@ func InitializeLogPlugins(cfg *LogConfig) (tasklog.Plugin, error) { } plugins = append(plugins, cfg.Templates...) - - if len(plugins) == 0 { - return nil, nil - } - return templateLogPluginCollection{plugins: plugins}, nil }