Skip to content

Commit

Permalink
MINOR: remove log_message in tcp_check and use only check_comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hdurand0710 authored and mjuraga committed Jun 13, 2024
1 parent 58cdaf9 commit cb22d63
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 28 deletions.
6 changes: 3 additions & 3 deletions configuration/tcp_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ func ParseTCPCheck(f types.Action) (check *models.TCPCheck, err error) {
switch v := f.(type) {
case *tcp_actions.CheckComment:
check = &models.TCPCheck{
Action: models.TCPCheckActionComment,
LogMessage: v.LogMessage,
Action: models.TCPCheckActionComment,
CheckComment: v.LogMessage,
}
case *actions.CheckConnect:
check = &models.TCPCheck{
Expand Down Expand Up @@ -373,7 +373,7 @@ func SerializeTCPCheck(f models.TCPCheck) (action types.Action, err error) { //n
switch f.Action {
case models.TCPCheckActionComment:
return &tcp_actions.CheckComment{
LogMessage: f.LogMessage,
LogMessage: f.CheckComment,
}, nil
case models.TCPCheckActionConnect:
return &actions.CheckConnect{
Expand Down
3 changes: 0 additions & 3 deletions models/tcp_check.go

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

8 changes: 0 additions & 8 deletions models/tcp_check_compare.go

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

4 changes: 2 additions & 2 deletions models/tcp_check_compare_test.go

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

6 changes: 0 additions & 6 deletions specification/build/haproxy_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6442,12 +6442,6 @@ definitions:
x-dependency:
action:
value: connect
log_message:
type: string
x-dependency:
action:
required: true
value: comment
match:
enum:
- string
Expand Down
6 changes: 0 additions & 6 deletions specification/models/configuration/tcp/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ tcp_check:
- set-var-fmt
- unset-var
x-nullable: false
log_message:
type: string
x-dependency:
action:
value: comment
required: true
check_comment:
type: string
x-nullable: false
Expand Down

0 comments on commit cb22d63

Please sign in to comment.