From 09ed45534d6bd72312a3db4a5dca7594a0d9f613 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 4 Jan 2021 21:48:38 -0500 Subject: [PATCH] refactor: always write out the vector configuration --- plugins/logs/subcommands.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/logs/subcommands.go b/plugins/logs/subcommands.go index 1dd4e0975..06b25aaf8 100644 --- a/plugins/logs/subcommands.go +++ b/plugins/logs/subcommands.go @@ -103,12 +103,12 @@ func CommandVectorLogs() error { // or starts an existing one if it already exists func CommandVectorStart(vectorImage string) error { common.LogInfo2("Starting vector container") - if !common.ContainerExists(vectorContainerName) { - common.LogVerbose("Ensuring vector configuration exists") - if err := writeVectorConfig(); err != nil { - return err - } + common.LogVerbose("Ensuring vector configuration exists") + if err := writeVectorConfig(); err != nil { + return err + } + if !common.ContainerExists(vectorContainerName) { return startVectorContainer(vectorImage) }