From 11c1af6cf39c15a777c18db9d55f5351911b5b71 Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Wed, 15 Jun 2022 17:13:54 -0500 Subject: [PATCH] Fix incorrect interpolation order for labels Commit f0c9c497bfccbdfc0e4a3dc5d45efeffd93cd054 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 --- nagios.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nagios.go b/nagios.go index 9d6d2b5..458b012 100644 --- a/nagios.go +++ b/nagios.go @@ -305,9 +305,9 @@ func (es *ExitState) ReturnCheckResults() { fmt.Printf( "%s%s**%s**%s", - es.getErrorsLabelText(), CheckOutputEOL, CheckOutputEOL, + es.getErrorsLabelText(), CheckOutputEOL, ) @@ -333,8 +333,8 @@ func (es *ExitState) ReturnCheckResults() { fmt.Printf( "%s**%s**%s", - es.getThresholdsLabelText(), CheckOutputEOL, + es.getThresholdsLabelText(), CheckOutputEOL, ) @@ -365,8 +365,8 @@ func (es *ExitState) ReturnCheckResults() { fmt.Printf( "%s**%s**%s", - es.getDetailedInfoLabelText(), CheckOutputEOL, + es.getDetailedInfoLabelText(), CheckOutputEOL, )