Skip to content

Commit

Permalink
tetragon: fix deprecated pprof flag compatibility
Browse files Browse the repository at this point in the history
Looks like I wasn't completely concentrated when I wrote fe78328,
this commit avoids to override the old flag value with an empty string.

Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Sep 2, 2024
1 parent 539d050 commit 0c8feda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/option/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ func ReadAndSetFlags() error {
Config.CpuProfile = viper.GetString(KeyCpuProfile)
Config.MemProfile = viper.GetString(KeyMemProfile)
Config.PprofAddr = viper.GetString(KeyDeprecatedPprofAddr)
Config.PprofAddr = viper.GetString(KeyPprofAddr)
if viper.IsSet(KeyPprofAddr) {
Config.PprofAddr = viper.GetString(KeyPprofAddr)
}

Config.EventQueueSize = viper.GetUint(KeyEventQueueSize)

Expand Down

0 comments on commit 0c8feda

Please sign in to comment.