From 2d841f47eba2f7d9ec220f9358b5a142402fb2e9 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 6 Jan 2021 22:45:47 -0500 Subject: [PATCH] fix: handle case where there are no apps --- plugins/logs/functions.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/logs/functions.go b/plugins/logs/functions.go index 2587d3341..eba6b20af 100644 --- a/plugins/logs/functions.go +++ b/plugins/logs/functions.go @@ -151,11 +151,7 @@ func valueToConfig(appName string, value string) (vectorSink, error) { } func writeVectorConfig() error { - apps, err := common.DokkuApps() - if err != nil { - return err - } - + apps, _ := common.DokkuApps() data := vectorConfig{ Sources: map[string]vectorSource{}, Sinks: map[string]vectorSink{},