Strip key/values of external quotes

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2023-12-13 06:18:05 -05:00
parent c324dbb8b4
commit 9d0da9d0fd
5 changed files with 11 additions and 4 deletions

View File

@ -611,7 +611,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