From 1f99570509c54ec28544b324cff7785e42351fd1 Mon Sep 17 00:00:00 2001 From: Vishnu Challa Date: Tue, 29 Oct 2024 21:59:40 -0400 Subject: [PATCH] Fixing CodeQL errors Signed-off-by: Vishnu Challa --- ocp-metadata/ocp-metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocp-metadata/ocp-metadata.go b/ocp-metadata/ocp-metadata.go index 0f18069..9ecae7e 100644 --- a/ocp-metadata/ocp-metadata.go +++ b/ocp-metadata/ocp-metadata.go @@ -361,7 +361,7 @@ func (meta *Metadata) getIPSec() (bool, string, error) { } } if err != nil { - return false, ipsecType, fmt.Errorf(err.Error()) + return false, ipsecType, fmt.Error(err.Error()) } if ipsecMode != "Disabled" { return true, ipsecMode, nil