fix: handle case where there are no apps
This commit is contained in:
@@ -151,11 +151,7 @@ func valueToConfig(appName string, value string) (vectorSink, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func writeVectorConfig() error {
|
func writeVectorConfig() error {
|
||||||
apps, err := common.DokkuApps()
|
apps, _ := common.DokkuApps()
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
data := vectorConfig{
|
data := vectorConfig{
|
||||||
Sources: map[string]vectorSource{},
|
Sources: map[string]vectorSource{},
|
||||||
Sinks: map[string]vectorSink{},
|
Sinks: map[string]vectorSink{},
|
||||||
|
|||||||
Reference in New Issue
Block a user