1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

Trim spaces from config value while reading CPE (#1103)

This commit is contained in:
Marcus Holl 2020-01-23 12:02:34 +01:00 committed by GitHub
parent b509e14afd
commit c448a72930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
"strings"
"github.com/SAP/jenkins-library/pkg/log"
)
@ -58,5 +59,5 @@ func readFromDisk(filename string) string {
if err != nil {
val = ""
}
return val
return strings.TrimSpace(val)
}