1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Merge pull request #606 from dagrayvid/parseOSRelease-trim-single-quotes

Trim single quotes in parseOSRelease
This commit is contained in:
Kubernetes Prow Robot 2021-09-23 05:09:22 -07:00 committed by GitHub
commit ccf5feecfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ func parseOSRelease() (map[string]string, error) {
for s.Scan() {
line := s.Text()
if m := re.FindStringSubmatch(line); m != nil {
release[m[1]] = strings.Trim(m[2], `"`)
release[m[1]] = strings.Trim(m[2], `"'`)
}
}