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:
commit
ccf5feecfb
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ func parseOSRelease() (map[string]string, error) {
|
||||||
for s.Scan() {
|
for s.Scan() {
|
||||||
line := s.Text()
|
line := s.Text()
|
||||||
if m := re.FindStringSubmatch(line); m != nil {
|
if m := re.FindStringSubmatch(line); m != nil {
|
||||||
release[m[1]] = strings.Trim(m[2], `"`)
|
release[m[1]] = strings.Trim(m[2], `"'`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue