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