refactor: always write out the vector configuration

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-01-04 21:48:38 -05:00
1 parent 711945147b
commit 09ed45534d
1 file changed
+1 -1
+1 -1
View File
@@ -103,12 +103,12 @@ func CommandVectorLogs() error {
// or starts an existing one if it already exists // or starts an existing one if it already exists
func CommandVectorStart(vectorImage string) error { func CommandVectorStart(vectorImage string) error {
common.LogInfo2("Starting vector container") common.LogInfo2("Starting vector container")
if !common.ContainerExists(vectorContainerName) {
common.LogVerbose("Ensuring vector configuration exists") common.LogVerbose("Ensuring vector configuration exists")
if err := writeVectorConfig(); err != nil { if err := writeVectorConfig(); err != nil {
return err return err
} }
if !common.ContainerExists(vectorContainerName) {
return startVectorContainer(vectorImage) return startVectorContainer(vectorImage)
} }