Skip to content

Commit

Permalink
[release-18.0] Correctly set log_dir default in vtcombo (#15153) (#15154
Browse files Browse the repository at this point in the history
)

Signed-off-by: Andrew Mason <[email protected]>
Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
  • Loading branch information
vitess-bot[bot] authored Feb 19, 2024
1 parent c4759aa commit 01866ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/cmd/vtcombo/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func run(cmd *cobra.Command, args []string) (err error) {

// vtctld UI requires the cell flag
cmd.Flags().Set("cell", tpb.Cells[0])
if cmd.Flags().Lookup("log_dir") == nil {
if f := cmd.Flags().Lookup("log_dir"); f != nil && !f.Changed {
cmd.Flags().Set("log_dir", "$VTDATAROOT/tmp")
}

Expand Down

0 comments on commit 01866ab

Please sign in to comment.