Merge pull request #21000 from rhatdan/machine

Strip key/values of external quotes
This commit is contained in:
openshift-merge-bot[bot]
2024-02-02 00:59:03 +00:00
committed by GitHub
5 changed files with 11 additions and 4 deletions

View File

@ -622,7 +622,7 @@ func (f *UnitFile) Lookup(groupName string, key string) (string, bool) {
return "", false
}
return strings.TrimRightFunc(v, unicode.IsSpace), true
return strings.Trim(strings.TrimRightFunc(v, unicode.IsSpace), "\""), true
}
// Lookup the last instance of a key and convert the value to a bool