Skip to content

Commit

Permalink
Fix incorrect interpolation order for labels
Browse files Browse the repository at this point in the history
Commit f0c9c49 applied an
incorrect interpolation order for the (potentially custom)
section header/label values.

This commit updates the order so that the label text is placed
within the formatting characters as intended.

refs GH-107
refs GH-119
  • Loading branch information
atc0005 committed Jun 15, 2022
1 parent 1591b60 commit 11c1af6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nagios.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ func (es *ExitState) ReturnCheckResults() {

fmt.Printf(
"%s%s**%s**%s",
es.getErrorsLabelText(),
CheckOutputEOL,
CheckOutputEOL,
es.getErrorsLabelText(),
CheckOutputEOL,
)

Expand All @@ -333,8 +333,8 @@ func (es *ExitState) ReturnCheckResults() {

fmt.Printf(
"%s**%s**%s",
es.getThresholdsLabelText(),
CheckOutputEOL,
es.getThresholdsLabelText(),
CheckOutputEOL,
)

Expand Down Expand Up @@ -365,8 +365,8 @@ func (es *ExitState) ReturnCheckResults() {

fmt.Printf(
"%s**%s**%s",
es.getDetailedInfoLabelText(),
CheckOutputEOL,
es.getDetailedInfoLabelText(),
CheckOutputEOL,
)

Expand Down

0 comments on commit 11c1af6

Please sign in to comment.