mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 00:07:03 +00:00
Trim single quotes in parseOSRelease
Signed-off-by: David Gray <dagray@redhat.com>
This commit is contained in:
parent
9cf732b64e
commit
3d9b18b087
1 changed files with 1 additions and 1 deletions
|
@ -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], `"'`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue