Skip to content

Commit

Permalink
BUG/MINOR: configuration: fix stats-show node to work without name
Browse files Browse the repository at this point in the history
  • Loading branch information
mjuraga committed Nov 6, 2023
1 parent c7d68f8 commit bee8caf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -1071,9 +1071,7 @@ func (s *SectionParser) statsOptions() interface{} { //nolint:gocognit
opt.StatsRefreshDelay = misc.ParseTimeout(v.Delay)
}
case *stats.ShowNode:
if v.Name != "" {
opt.StatsShowNodeName = misc.StringP(v.Name)
}
opt.StatsShowNodeName = misc.StringP(v.Name)
case *stats.URI:
if v.Prefix != "" {
opt.StatsURIPrefix = v.Prefix
Expand Down
2 changes: 1 addition & 1 deletion models/stats_options.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions specification/build/haproxy_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7596,6 +7596,7 @@ definitions:
pattern: ^[^\s]+$
type: string
x-nullable: true
x-omitempty: false
stats_uri_prefix:
pattern: ^[^\s]+$
type: string
Expand Down
1 change: 1 addition & 0 deletions specification/models/configuration/misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ stats_options:
type: string
pattern: '^[^\s]+$'
x-nullable: true
x-omitempty: false
stats_uri_prefix:
type: string
pattern: '^[^\s]+$'
Expand Down

0 comments on commit bee8caf

Please sign in to comment.